Commit Graph

9 Commits

Author SHA1 Message Date
Evgeny Mankov 59e3e7b531 clang-hipify: Populate replacement rules and fix typos.
+ fix typo in hipStreamWaitEvent.
+ hipHostAlloc -> hipHostMalloc.
+ Memory Types, Pointer Attributes are added.
+ Event, Host Malloc and Register, Device and Stream Flags are added.
+ exclude cudacommon.h.prehip from includes' replacement rules.


[ROCm/hip commit: 19a6f1486a]
2016-07-07 18:01:41 +03:00
Evgeny Mankov 5f4dd24454 clang-hipify: add Replacement Excludes
Excludes are not replaced, for instance, CHECK_CUDA_ERROR and CUDA_SAFE_CALL.
Add check for excludes in MacroExpands and CallExpr routines.


[ROCm/hip commit: fd1e556cf2]
2016-07-01 19:58:14 +03:00
Evgeny Mankov f239b02539 clang-hipify: fix typos and populate replacement rules
+ typos in cudaDeviceAttr and cudaDeviceAttr
+ Device Attribules are added
+ More error codes are added


[ROCm/hip commit: 2eac7144f0]
2016-06-29 20:32:05 +03:00
Evgeny Mankov 2f9a50766c clang-hipify: Array of elements of typedef type translation support.
Example: cudaStream_t streams[2]


[ROCm/hip commit: e1785a8b9f]
2016-06-28 19:57:08 +03:00
Evgeny Mankov ecf3c87003 cublas to hipblas translation support in clang-hipify
+ CUBLAS V2 functions support
+ annotating, formatting


[ROCm/hip commit: 8f9bdf641f]
2016-06-28 15:33:38 +03:00
Evgeny Mankov ed75fba80e Initial cublas to hipblas translation support in clang-hipify.
To run clang-hipify with hipblas support please specify corresponding hipblas include directory, for example:

./hipify-clang --print-stats matrixMult.cpp.cuda -- -I/srv/git/HIP/HIP-Examples/hipblas/include

Additionally:
+ typedef translation support is added (cudaEvent_t and cudaStream_t are converted now).
+ anonymous typedef enum translation support.
+ function name macro expansion support.
+ clang options propagation is restored.
P.S. In order to avoid the following error message:
“Could not auto-detect compilation database for file "… .cu"
No compilation database found in /srv/git/HIP/build/clang-hipify or any parent directory
json-compilation-database: Error while opening JSON database: No such file or directory
Running without flags.”
please append “--“ to the end of clang-hipify’s command line.


[ROCm/hip commit: 8cbc2f3f44]
2016-06-22 19:15:03 +03:00
Maneesh Gupta 340a3f8d5b Fix missing JSON database warning from hipify-clang
Change-Id: I4aeff51556678266c1392a031deeb9ffff2386bc


[ROCm/hip commit: 99dc8abf68]
2016-05-20 14:06:27 +05:30
alex-t 0b16b6592b Fixed incorrect kernel paramlist replacement length & hipGetDeviceProperties mapping
[ROCm/hip commit: c84fdef9d3]
2016-04-14 13:48:58 +03:00
dfukalov a769b1ee38 Imported clang-hipify as a subtree
[ROCm/hip commit: 8115896010]
2016-04-04 23:18:15 +03:00