HIPIFY
HIPIFY copied to clipboard
HIPIFY: Convert CUDA to Portable C++ Code
+ MIopen lives here: https://github.com/ROCmSoftwarePlatform/MIOpen, it is alive and synced with ROCm HIP releases + First implement under an option, then switch on by default by switching `cuDNN` -> `hipDNN`...
The idea is to introduce yet another hipification approach: instead of a new hipified file or hipification in-place perform hipification in the source CUDA file by keeping both CUDA and...
First, syntactically, second, semantically.
When hipifying cuda source containing cusparse code, `CUDA_R_32F` (of type `cudaDataType`) should be converted to `HIP_R_32F` (of type `hipDataType`), which is, according to `nvcc_detail/hip_runtime_api.h`, just a macro definition of the...
Example: ```cpp axpy(); ```
Test harness should: + be based on lit testing + include the same tests as hipify-clang testing + use AMAP the same checks as hipify-clang test harness uses
(Related to #134) Ran `hipify-clang /path/to/NVIDIA_CUDA-10.2_Samples/0_Simple/simpleMultiCopy/simpleMultiCopy.cu --skip-excluded-preprocessor-conditional-blocks -- -I/path/to/NVIDIA_CUDA-10.2_Samples/common/inc` and got ``` /tmp/simpleMultiCopy.cu-2fb81b.hip:128:7: error: no matching function for call to 'max' max((32.0f / (_ConvertSMVer2Cores(deviceProp.major, deviceProp.minor) * ... ... /usr/local/cuda-10.2/include/crt/math_functions.hpp:1079:31: note:...
With the change https://github.com/ROCm-Developer-Tools/HIP/pull/1372, all the blocks are not excluded from AST when `-skip-excluded-preprocessor-conditional-blocks` option is set. The corresponding change in clang: https://reviews.llvm.org/D66597. The main idea is: if there is...