Comments (3)
change option -std=c++11 to -std=c++17 in hipify-clang's cmake;
or try to remove it.
Oh, you misunderstand (or maybe I do?).
This isn't to do with the version of C++ used to compile hipify-clang, this is to do with the C++ version the user is using in their CUDA files - as input to hipify-clang. This also applies to C++14.
The practical effect is the user's code cannot contain C++14/17 features. Even if they invoke hipify-clang with -std=c++14
(or 17).
For instance, try hipifying this trivial file
template<class T>
constexpr T pi = T(3.1415926535897932385);
You'll get warnings (or errors) about use of a C++14 variable template. Even if you pass -std=c++14
!
This is because hipify-clang is adding -std=c++11
to the end of the effective arg-list, which overrides any user-provided value. An issue I resolve in ROCm/HIP#217 .
from hipify.
https://github.com/ROCm-Developer-Tools/HIP/issues/207:
change option -std=c++11 to -std=c++17 in hipify-clang's cmake;
or try to remove it.
from hipify.
Fixed with ROCm/HIP#217
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 5
- [HIPIFY][build][LLVM] build fails, if multiple llvm/clang versions are installed 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.