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

choosing GPU_DEVICE from gpu.config doesn't work #10

Open
odiakun opened this issue Jun 10, 2024 · 4 comments
Open

choosing GPU_DEVICE from gpu.config doesn't work #10

odiakun opened this issue Jun 10, 2024 · 4 comments
Labels
question Further information is requested

Comments

@odiakun
Copy link

odiakun commented Jun 10, 2024

For LU, BT and SP algorithms, device 0 is selected every time, even after a change of GPU_DEVICE in the gpu.config file.

@gabriellaraujocoding
Copy link
Member

gabriellaraujocoding commented Jun 10, 2024

Hello, @odiakun.

First of all, thank you for using the NPB-GPU.

Second, are you recompiling the benchmark after modifying the gpu.config file? After making changes to the gpu.config file, it's essential to recompile the benchmark for the modifications to be applied and take effect.

Third, have you downloaded the latest version of NPB-GPU? We updated NPB-GPU a few days ago to automatically collect the compute capability according to the GPU_DEVICE in the gpu.config file.

In the latest version of NPB-GPU, when you compile a benchmark, the terminal will show a message if a GPU device is not valid. For example:

The GPU id 5 is not valid. Using GPU 0 as default.
Updated COMPUTE_CAPABILITY (GPU of id 0) in ../config/make.def to -gencode arch=compute_89,code=sm_89

I have a few questions for you:

  1. Is the GPU device being correctly selected in the other benchmarks CG, EP, FT, IS, and MG?
  2. When we compile a benchmark, it generates a file named npbparams.hpp in the directory of the benchmark you are compiling. Can you share the npbparams.hpp file generated?
  3. Can you share the output of the compilation and execution?
  4. What are your GPUs and CUDA versions?
  5. If the GPU_DEVICE occurs several times in the gpu.config file, NPB-GPU collects only the first occurrence. You provided the GPU device info in the first lines of the gpu.config file, right?

@gabriellaraujocoding
Copy link
Member

Could you modify the gpu.config file and recompile the benchmark?

@gabriellaraujocoding gabriellaraujocoding added the question Further information is requested label Jun 11, 2024
@dalvangriebler
Copy link
Contributor

@odiakun is the issue solved?

@odiakun
Copy link
Author

odiakun commented Sep 23, 2024 via email

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

No branches or pull requests

3 participants