Skip to content

Commit 800f943

Browse files
LAhmosFJShen
authored andcommitted
fixing bunch of formatting warnings (gpgpu-sim#53)
* fixing bunch of formating warrnings * remove unintialized and unused results warnnings * revert the changes , as it doenst fix the warning --------- Co-authored-by: Fangjia Shen <[email protected]>
1 parent 287cfb7 commit 800f943

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

libcuda/cuda_runtime_api.cc

-9
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,6 @@ static int get_app_cuda_version() {
464464
" | grep libcudart.so | sed 's/.*libcudart.so.\\(.*\\) =>.*/\\1/' > " +
465465
fname;
466466
int res = system(app_cuda_version_command.c_str());
467-
if(res == -1){
468-
printf("Error - Cannot detect the app's CUDA version.\n");
469-
exit(1);
470-
}
471467
FILE *cmd = fopen(fname, "r");
472468
char buf[256];
473469
while (fgets(buf, sizeof(buf), cmd) != 0) {
@@ -3239,11 +3235,6 @@ char *readfile(const std::string filename) {
32393235
// allocate and copy the entire ptx
32403236
char *ret = (char *)malloc((filesize + 1) * sizeof(char));
32413237
int num = fread(ret, 1, filesize, fp);
3242-
if(num == 0){
3243-
std::cout << "ERROR: Could not read data from file %s\n"
3244-
<< filename << std::endl;
3245-
assert(0);
3246-
}
32473238
ret[filesize] = '\0';
32483239
fclose(fp);
32493240
return ret;

0 commit comments

Comments
 (0)