Comments (4)
Can the following suit your needs?
Having not found or multiple LLVM instances, the root folder with LLVM distributive must be specified in the CMake command line to build hipify-clang, for example:
-DCMAKE_PREFIX_PATH=/usr/llvm/17.0.6/dist
https://github.com/ROCm/HIPIFY/blob/amd-staging/docs/hipify-clang.md#hipify-clang-building
from hipify.
@emankov , sorry, I missed this part in the readme and both of these solutions work:
-DCMAKE_PREFIX_PATH=/usr/lib/llvm/17/lib64/cmake/llvm
or
-DLLVM_DIR=/usr/lib/llvm/17/lib64/cmake/llvm
So adding version in find_package
could help, but it is not the only solution.
from hipify.
OK, thanks for your response!
So adding version in find_package could help, but it is not the only solution.
We can't stick with a particular version or a range while finding LLVM, as older versions may be installed depending on the user's platform. Choosing the latest version by default
is a common and generally accepted behaviour of find_package
; otherwise, the user must explicitly specify the needed version.
from hipify.
After thinking a bit more, I agree with you. At any point of time you can't control, in which next LLVM release compatibility will be broken and in the past won't be able to release HIPIFY in rocm-5.7.1 with find_package(LLVM 17 REQUIRED)
, as you can't say now that current version will be compatible only with LLVM 19 (and not LLVM 20).
from hipify.
Related Issues (20)
- [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] hipify-clang terminates with constexpr function cannot overload function with same signature HOT 9
- [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
- [HIPIFY] Linking fails when LLVM libraries were compiled as shared library. HOT 1
- [HIPIFY] hipconvertinplace-perl.sh does not seem to convert cuFuncSetAttribute and cuFuncSetCacheConfig HOT 2
- [HIPIFY] amd-staging branch build on Windows runs but doesn't replace anything in generated hip file HOT 9
- [HIPIFY][Issue]: "fatal error: '__clang_cuda_runtime_wrapper.h' file not found" while generating HOT 6
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.