gpgpu-sim / gpgpu-sim_distribution

GPGPU-Sim provides a detailed simulation model of contemporary NVIDIA GPUs running CUDA and/or OpenCL workloads. It includes support for features such as TensorCores and CUDA Dynamic Parallelism as well as a performance visualization tool, AerialVisoin, and an integrated energy model, GPUWattch.
Other
1.13k stars 508 forks source link

Compiling dev branch of GPGPU-Sim #141

Open govindshenoy opened 5 years ago

govindshenoy commented 5 years ago

Greetings all!

I am trying to compile the dev branch of gpgpu-sim with GCC-7.4. When I compile I get the following error:

cuda_runtime_api.cc: At global scope: cuda_runtime_api.cc:1269:53: error: ‘cudaIpcMemHandle_t’ was not declared in this scope host cudaError_t CUDARTAPI cudaIpcGetMemHandle( cudaIpcMemHandle_t handle, void devPtr ) ^~~~~~ cuda_runtime_api.cc:1269:53: note: suggested alternative: ‘cudaIpcGetMemHandle’ host cudaError_t CUDARTAPI cudaIpcGetMemHandle( cudaIpcMemHandle_t handle, void devPtr ) ^~~~~~ cudaIpcGetMemHandle

any help would be appreciated!

Regards Govind

gangmul12 commented 5 years ago

how about using lower version of gcc?

govindshenoy commented 5 years ago

Thank you for your reply. I tried with gcc-4.8 and gcc-4.4. Both are giving me the same error. Can you suggest what I should do ?

Regards Govind

On Sun, 11 Aug 2019 at 04:40, gangmul12 notifications@github.com wrote:

how about using lower version of gcc?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gpgpu-sim/gpgpu-sim_distribution/issues/141?email_source=notifications&email_token=AAY4VW275INOLWBN2CLQNYTQD7NBHA5CNFSM4IJPK7AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4A5OBI#issuecomment-520214277, or mute the thread https://github.com/notifications/unsubscribe-auth/AAY4VW7XYQGDXKKR3XFVEVDQD7NBHANCNFSM4IJPK7AA .

gangmul12 commented 5 years ago

i installed gpgpu-sim using gcc5. Actually i tried it with gcc-4.8 and it worked very well...

govindshenoy commented 5 years ago

Thanks for the pointers!. Can you provide link to your base repository so that I can try with your settings ?

Regards Govind

On Mon, 12 Aug 2019 at 05:44, gangmul12 notifications@github.com wrote:

i installed gpgpu-sim using gcc5. Actually i tried it with gcc-4.8 and it worked very well...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gpgpu-sim/gpgpu-sim_distribution/issues/141?email_source=notifications&email_token=AAY4VW56T6TOTPQUSA3JC53QEE5KVA5CNFSM4IJPK7AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4CFB6I#issuecomment-520376569, or mute the thread https://github.com/notifications/unsubscribe-auth/AAY4VW3FIQB7H24IHLAIIZTQEE5KVANCNFSM4IJPK7AA .

gangmul12 commented 5 years ago

actually i cloned original repo and installed it!!

Actually, cudaIpcMemHandle_t is defined at cuda, not gpgpu-sim i suspect that your cuda version or environment variable is not properly set

which cuda version do you use? I;ve installed master branch with cuda 4.2, and dev branch with cuda 8.0/9.2 which os do you use? i used ubuntu 16.04/14.04.

did you properly set CUDA_INSTALL_PATH? or did you source setup_environement script? or did you have any setting that can affect to compiler? did you follow the readme of gpgpu-sim?

gangmul12 commented 5 years ago

My colleague find that cudaIpcMemHandle_t is not supported at low version CUDA. Someone need to fix it

govindshenoy commented 5 years ago

Yes that is right, now when I try with CUDA-7.5 it works fine.

Regards Govind

On Sat, 24 Aug 2019 at 07:29, gangmul12 notifications@github.com wrote:

My colleague find that cudaIpcMemHandle_t is not supported at low version CUDA. Someone need to fix it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gpgpu-sim/gpgpu-sim_distribution/issues/141?email_source=notifications&email_token=AAY4VW56YABB3NPWOB5WDFDQGESRRA5CNFSM4IJPK7AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5B7DWI#issuecomment-524546521, or mute the thread https://github.com/notifications/unsubscribe-auth/AAY4VWZNKPWCGI5YCL76VKLQGESRRANCNFSM4IJPK7AA .