-
Notifications
You must be signed in to change notification settings - Fork 41
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
[Issue]: HIP-Basics/hello_world_cuda
fails to compile
#151
Comments
Could you tell me which versions of ROCm, CUDA, and GCC you are using? I couldn't reproduce the issue with ROCm 6.2, CUDA 12.6, and GCC 11.4.0, and the latest version of this repository. I'm starting with the CUDA 12.6 ubuntu 22.04 docker image and install ROCm by installing the |
Thanks for the reply. |
I'm still not seeing the issue, even with those same versions. Could you try compiling the example in a docker container, starting for example with
Since the error is originating from a C++ standard library header, I suspect that there is an issue there somehow. This could be caused by a modified or different version of libstdc++, or maybe some other version incompatibility. Its kind of annoying that it doesn't show a more complete trace of error. Anyway hence my question to start with a docker container, which should contain a pristine version of everything. |
Interesting. Using the docker image it successfully compiles, but executing it raised another error: $ ./hello_world_hip
Hello world from host!
Hello world from device or host!
An error encountered: "named symbol not found" at /rocm-examples/HIP-Basics/hello_world/main.hip:77 But line 77 is merely a synchronization. I was thinking maybe it fails to run on my NVIDIA GPU (i.e. the second hello world is on host instead of device)? I am following on a different installation guide here, and that one is also how I installed ROCm on my WSL2 environment. |
Hi @CanYing0913, unfortunately I cannot repro the issue, but it seems to be an incompatibility between gcc and nvcc. You can try the fixes here: NVlabs/instant-ngp#119 or update to ROCm 6.1.3 and newer version of cuda and nvidia driver. |
makefile is generated by
result of running
make GPU_RUNTIME=CUDA
:The text was updated successfully, but these errors were encountered: