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

[HIPIFY][CUDA] runtime error while hipifying a simple CUDA code #772

Closed
ytzhang1 opened this issue Feb 9, 2023 · 2 comments
Closed

[HIPIFY][CUDA] runtime error while hipifying a simple CUDA code #772

ytzhang1 opened this issue Feb 9, 2023 · 2 comments
Assignees
Labels
CUDA CUDA-related question Further information is requested

Comments

@ytzhang1
Copy link

ytzhang1 commented Feb 9, 2023

Hi, I tried to migrate a simple CUDA code using hipify and llvm-15.0.7, but got the following error. Any idea why this happens ? Thanks,

llvm-15.0.7/install/lib/clang/15.0.7/include/__clang_cuda_texture_intrinsics.h:696:13: error: no template named 'texture'
texture<__DataT, __TexT, cudaReadModeNormalizedFloat> __handle,
^
llvm-15.0.7/install/lib/clang/15.0.7/include/__clang_cuda_texture_intrinsics.h:709:13: error: no template named 'texture'
texture<__DataT, __TexT, cudaReadModeElementType> __handle,

@emankov emankov self-assigned this Feb 9, 2023
@emankov emankov changed the title runtime error while hipifying a simple CUDA code [HIPIFY][CUDA] runtime error while hipifying a simple CUDA code Feb 9, 2023
@emankov emankov added the CUDA CUDA-related label Feb 9, 2023
@emankov
Copy link
Collaborator

emankov commented Feb 9, 2023

Most likely, the reported compilation errors are due to CUDA 12.0, which is not yet fully supported either by LLVM 15.x, or even by LLVM 16.x. The latest supported CUDA version for LLVM 15.x is 11.8.

Please, follow the instructions given at https://github.com/ROCm-Developer-Tools/HIPIFY#-hipify-clang-dependencies.

@ytzhang1
Copy link
Author

ytzhang1 commented Feb 9, 2023

Hi, I was using cuda 11.7 or 11.8 for the --cuda-path option, that doesn't seem an issue. But I updated the hipify repository today and rebuilt hipify, now the problem is gone. Thanks!

@ytzhang1 ytzhang1 closed this as completed Feb 9, 2023
@emankov emankov added the question Further information is requested label Feb 9, 2023
@Mustaballer Mustaballer pinned this issue Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CUDA CUDA-related question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants