Comments (9)
The problem is that hipify-clang is awaiting clang header files in the 17
subfolder (in the newest format), whereas the rocm has an older format of this clang's subfolder: 17.0.0
:
ignoring nonexistent directory "/opt/rocm/llvm/lib/clang/17/include/cuda_wrappers"
ignoring nonexistent directory "/opt/rocm/llvm/lib/clang/17/include"
What version of the ROCm and HIPIFY packages did you install?
Do they have the same version?
As an ugly workaround to make it work in your current configuration, you may copy the contains of the /opt/rocm/llvm/lib/clang/17.0.0/include/
to newly created /opt/rocm/llvm/lib/clang/17/include/
. Explicit includes to clang like -I /opt/rocm/llvm/lib/clang/17/include/
are not needed, moreover, they can't help, as instead multiple -internal-isystem
includes are used internally by hipify-clang itself. That is why you are getting multiple ignoring nonexistent directory
messages in the verbose mode.
from hipify.
I am in arch
installing both packages from extra
repository. Current package version is (both):
5.7.1-1
If I symlink 17.0.0
to 17
in /opt/rocm/llvm/lib/clang/
, I seem to be able to convert a file with the following command:
/opt/rocm/hip/bin/hipify-clang -v --inplace common.cu --cuda-path=/opt/cuda -I /opt/rocm/include/
from hipify.
What happened without -I /opt/rocm/llvm/lib/clang/17.0.0/include/
?
from hipify.
Thanks for your answer. Can't test before January since I am traveling over Christmas 🎄. Will try and report back as soon as I am back in office!
from hipify.
Without the Include parameter, I am getting the following error:
<built-in>:1:10: fatal error: '__clang_cuda_runtime_wrapper.h' file not found
#include "__clang_cuda_runtime_wrapper.h"
from hipify.
Moving on to a more complex file, however, seems to greate more issues:
/tmp/aes_cbc.cu-6884ee.hip:199:16: error: redefinition of 'l_te' with a different type: 'const u32 *' (aka 'const unsigned int *') vs 'u32[256]' (aka 'unsigned int[256]')
const u32* l_te = g_Te0;
^
/tmp/aes_cbc.cu-6884ee.hip:194:20: note: previous definition is here
__shared__ u32 l_te[256];
^
7 warnings and 1 error generated when compiling for host.
Error while processing /tmp/aes_cbc.cu-6884ee.hip.
I have to admit, that I have no / little experience with cuda
and GPU programming at all, so this might take more time to investigate (If it even makes sense what I am doing) :/
Thanks for your help anyways! :)
from hipify.
Moving on to a more complex file, however, seems to greate more issues:
/tmp/aes_cbc.cu-6884ee.hip:199:16: error: redefinition of 'l_te' with a different type: 'const u32 *' (aka 'const unsigned int *') vs 'u32[256]' (aka 'unsigned int[256]') const u32* l_te = g_Te0; ^ /tmp/aes_cbc.cu-6884ee.hip:194:20: note: previous definition is here __shared__ u32 l_te[256]; ^ 7 warnings and 1 error generated when compiling for host. Error while processing /tmp/aes_cbc.cu-6884ee.hip.
I have to admit, that I have no / little experience with
cuda
and GPU programming at all, so this might take more time to investigate (If it even makes sense what I am doing) :/Thanks for your help anyways! :)
Well, the compiler says that you have a redefinition of u32
, and it looks like it is redefined. Have you tried to compile your CUDA source by CUDA's nvcc? Is the source correct?
from hipify.
Related Issues (20)
- [HIPIFY] Documentation abbreviation explanation for Supported CUDA APIs HOT 2
- [HIPIFY][Windows][VS][build][failure] clang/Driver/Options.inc(66,1): error C2365: 'clang::driver::options::OPT_': redefinition; previous definition was 'enumerator' HOT 1
- [HIPIFY] compile texture_driver HOT 5
- [HIPIFY][clang][build] Build failure when build against LLVM ToT 18.0.0git HOT 1
- [HIPIFY][clang][build] LLVM ToT 18.0.0git build failure HOT 1
- [HIPIFY][tests][failure] The synthetic test `cublas2rocblas.cu` is failed on CUDA 10.2 HOT 1
- [HIPIFY][doc][6.0.0][feature] Introduce the `C - Changed` column for HIP and ROC HOT 1
- [HIPIFY][perl] ROCm 5.7.1 on Almalinux (RHEL) has wrong path to findcode.sh HOT 2
- [HIPIFY] error: could not open ... coordinateSystem.prehip at /usr/bin/hipify-perl line 9986, <INFILE> chunk 20. HOT 1
- [HIPIFY] How to estimate the accuracy of converting HIP to CUDA or converting CUDA to HIP? HOT 2
- [HIPIFY] Isn't hipify-clang preprocessor based tool? HOT 4
- [HIPIFY] Makefile generation HOT 6
- [HIPIFY] Does HIPIFY support on WSL2? HOT 1
- [HIPIFY] Cuda graph HOT 2
- [HIPIFY][BLAS] cublasSetMathMode and CUBLAS_GEMM_DEFAULT_TENSOR_OP HOT 1
- [HIPIFY] Changing compiler and cuda environment related section to ROCm? HOT 3
- [HIPIFY][win] cannot find CUDA installation HOT 18
- [HIPIFY][tests][bug] `cusparse2rocsparse_10000.cu` failed with clang crash HOT 1
- [HIPIFY] How to hipify the programs based nvidia cutlass HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hipify.