GMAP / NPB-GPU

NAS Parallel Benchmarks for GPU
Other
18 stars 7 forks source link

make error #11

Closed 2Ho0 closed 1 month ago

2Ho0 commented 1 month ago

Hi i'm trying to execute NPB-GPU on Jetson Orin NX, Jetson Orin Nano My CUDA version is 12.2 and charset is UTF-8 And i modified make.def like this COMPUTE_CAPABILITY = -gencode arch=compute_87,code=sm_87

But when i make bt or the others benchmark, there is crash like this image

So i changed CUDA version to 11.4 but it still didn't work How can i make it?

2Ho0 commented 1 month ago

I found what the problem was image

char* read_nvcc_cuda_version(){ FILE file; char command[64]; static char result[64]; char pointer; sprintf(command, "nvcc --version |grep release |awk '{print $6}'"); file = popen(command,"r"); fgets(result, sizeof(result) , file); pointer=result; strtok(pointer, "\n"); fclose(file); return (++pointer); } I was getting an error in read_nvcc_cuda_version() in sys/setparams.cpp, I added static and it worked fine!!