Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA and GPGPU-Sim versions #3

Open
topcuburak opened this issue Jan 1, 2023 · 0 comments
Open

CUDA and GPGPU-Sim versions #3

topcuburak opened this issue Jan 1, 2023 · 0 comments

Comments

@topcuburak
Copy link

First, it is okay for some CUDA applications without downgrading the GPGPU-Sim or CUDA versions for compatibility issues.
For example, the following commands are used to obtain a properly working executable for the BFS application.

  1. nvcc linear_base.cu -o linear_base.o -lcudart -arch=sm_70 -c -I ../../include -I ../../cub -> this gives us the compiled linear_base.o file. Do not forget to link with cudart and specify your architectural specs.
  2. gcc main.cc -o main.o -I ../../include -I ../../cub -> this gives us the compiled main.o file.
  3. gcc verifier.cc -o verifier.o -I ../../include -I ../../cub -> this gives us the compiled verifier.o file.
    Lastly, you need to link those executables with the following command:
  4. nvcc linear_base.o main.o verifier.o -o bfs_linear_base -L /usr/lib64 -lcudart -arch=sm_70

Also, the below command shows how I executed your benchmark BFS code on the simulator.
./bfs_linear_base mtx ../CudaBenchmarks/gardenia/datasets/soc-LiveJournal1/soc-LiveJournal1 0 0 0

You may fix the correct path of the soc-LiveJournal1.mtx file. There is an additional soc-LiveJournal1 folder holding the soc-LiveJournal1.mtx file.

Thank you for the benchmark. I hope you have an excellent year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant