Maneesh Gupta
2af31479e2
Merge branch 'amd-master' into amd-master-next
...
Change-Id: I3094c15008093f2072bcd38aca4ea90aeae2d97b
2020-04-09 06:31:00 -04:00
Rahul Garg
edc97f3073
Add hipDrvOccupancyMaxActiveBlocksPerMultiprocessor[WithFlags] ( #1854 )
...
Equivalent to cuOccupancyMaxActiveBlocksPerMultiprocessor[WithFlags].
2020-02-28 16:46:55 +05:30
Aryan Salmanpour
874b201ee2
resolve merge conflict
2020-02-10 10:30:55 -05:00
Evgeny Mankov
58906beac9
[HIPIFY] Fix build failure against ToT trunk LLVM 11.0.0
...
+ Add an explicit cast when assigning StringRef to std::string
2020-02-01 14:41:16 +03:00
Aryan Salmanpour
c8137263d6
code clean up
2020-01-31 13:08:25 -05:00
Aryan Salmanpour
6e867eacb6
[HIP][HIPIFY] Add some missing flags for cooperative launch and occupancy APIs
2020-01-30 15:05:53 -05:00
Evgeny Mankov
e3026e99bb
[HIPIFY][ #1819 ] Fix for not found clang's system header files
...
Use absolute paths instead of relative ones.
2020-01-27 12:37:26 +03:00
Evgeny Mankov
f0db2c761b
[HIPIFY][fix] Add "--" separator in-place if needed
2020-01-13 18:49:28 +03:00
Evgeny Mankov
d7f8654487
[HIPIFY] Sync with hipSPARSE
...
+ Update hipify-perl and doc accordingly
2020-01-13 18:34:10 +03:00
Evgeny Mankov
a005a8550d
[HIP] Unify hipError_t (Step 3): Sync nvcc path ( #1778 )
...
* [HIP] Unify hipError_t (Step 3): Sync nvcc path
* [HIP][fix] Add CUDA 10.x support to nvcc path
2020-01-10 13:47:18 +05:30
Evgeny Mankov
e9de81fea7
[HIPIFY] main source file refactoring
2020-01-07 16:25:18 +03:00
Evgeny Mankov
dbad4d9b7f
[HIP] Unify hipError_t (Step 2)
...
Step 2. Make a few hipError codes deprecated
Update hipify-clang, hipify-perl, docs and samples accordingly
2019-12-22 02:05:31 +03:00
Evgeny Mankov
191808fe72
Merge pull request #1739 from emankov/hipify-clang
...
[HIP] Unify hipError_t (Step 1)
2019-12-19 07:57:02 +03:00
Evgeny Mankov
3b00057922
[HIPIFY] Revise HIP runtime
...
+ hipMemAllocHost is deprecated, use hipHostMalloc instead
+ hipMemAllocManaged -> hipMallocManaged
+ hipFreeHost -> hipHostFree
+ cudaMemset3D(Async) -> hipMemset3D(Async)
+ update docs and hipify-perl accordingly
2019-12-16 20:09:55 +03:00
Evgeny Mankov
d8737ba50c
[HIP] Unify hipError_t (Step 1)
...
Step 1. Set the same values for RT error codes as for analogous Driver's
[Reason] RT's and Driver's error codes unification in CUDA 10.2
2019-12-13 19:40:16 +03:00
Evgeny Mankov
396a8a7a00
[HIPIFY][BLAS] Sync with cuBlas/rocblas/hipBlas
2019-12-12 19:52:18 +03:00
Evgeny Mankov
40bac6b144
[HIPIFY] Add cleanupHipifyOptions functionality
...
Needed for sorting input files to avoid clang errors on unsupported options
2019-12-08 15:13:28 +03:00
Evgeny Mankov
b472f41896
[HIPIFY] main source file refactoring
2019-12-07 13:50:13 +03:00
Evgeny Mankov
6868b38d1b
[HIPIFY][fix][ #1246 ][ #1655 ] Sort input files based on their dependency graph
...
+ Implemented by using clang Driver infrastructure
[ToDo] Add tests for in-place hipification of multiple files
2019-12-07 11:20:17 +03:00
Evgeny Mankov
ec9b6a95a3
[HIPIFY] CUDA 10.2 (functions only)
...
+ Both Driver API and RT API are supported and synced with each other
+ Update *.md docs and hipify-perl accordingly
+ Add new conversion type "virtual_memory", introduced in Dirver API
2019-12-04 18:37:31 +03:00
Evgeny Mankov
e3c3c6d86e
[HIPIFY] CUDA 10.2 fp_16 support
2019-12-04 13:27:46 +03:00
Evgeny Mankov
5a03e8ccb9
[HIPIFY] CUDA 10.2 support (data types only)
...
+ Both Driver API and RT API are supported and synced with each other
+ Update *.md docs and hipify-perl accordingly
2019-12-04 12:25:20 +03:00
Evgeny Mankov
d33dd71ed3
[HIPIFY] Sync cudaError/CUresult between CUDA Driver API/CUDA RT API/HIP
...
+ Update *.md docs and hipify-perl accordingly
[Reason]
Starting with CUDA 10.1 all error codes are merged between Driver and RT APIs
[ToDo]
Do the same merge in HIP API as there is no need in distinguishing return codes by API
2019-11-29 19:29:11 +03:00
Shyam Saladi
70f457d7ea
[HIPIFY] fix typo ( #1681 )
2019-11-22 07:54:37 +05:30
Evgeny Mankov
93bc9c9195
[HIPIFY] Clang style formatting
2019-11-07 12:48:05 +03:00
Evgeny Mankov
0c07b6b421
[HIPIFY][fix] Delete canCompileHostAndDeviceInOneJob declaration as well
2019-11-07 11:32:53 +03:00
Evgeny Mankov
c2c144ac04
[HIPIFY][fix] Abandon canCompileHostAndDeviceInOneJob check for --cuda-compile-host-device option
...
[Reason] It turned out that it is not so: 2 jobs are always
2019-11-07 11:30:40 +03:00
Evgeny Mankov
16a27213e4
[HIPIFY] Reorder options propagation to clang
...
[Reason] Leave overriding opportunity for -D, -std=c++XX, etc.
2019-11-07 11:21:06 +03:00
Evgeny Mankov
9ca4e96641
[HIPIFY][Win][fix] canCompileHostAndDeviceInOneJob is true only for LLVM >= 10
2019-11-06 19:25:42 +03:00
Evgeny Mankov
3b76fd0b1c
[HIPIFY][format] Apply clang style formatting in LLVMCompat
2019-11-06 14:43:22 +03:00
Evgeny Mankov
c87ab05fc6
[HIPIFY] Add a compatibility for CharSourceRange if LLVM < 7
2019-11-06 14:30:39 +03:00
Evgeny Mankov
a601670cb7
Merge pull request #1624 from emankov/hipify
...
[HIPIFY][#1409 ] Fix for kernel launch macro expansion
2019-11-05 14:04:51 +03:00
Evgeny Mankov
976f8e8bf6
[HIPIFY][ #1409 ] Fix for kernel launch macro expansion
...
+ Add a corresponding test kernel_launch_01.cu
+ Add isBefore() check to avoid crash on Replacement with negative length
TODO:
+ Compatibility with former LLVM versions
+ More complicated kernel launch tests
2019-11-05 14:00:13 +03:00
Evgeny Mankov
02589264a0
[HIPIFY] Introduce --cuda-gpu-arch as hipify-clang's option
...
+ Pass it to clang if specified
2019-11-02 14:19:31 +03:00
Evgeny Mankov
c48fdefee8
[HIPIFY][CUB][ #1460 ][perl] Add "cub::" namespace prefix support in hipify-perl as well
2019-11-01 14:34:18 +03:00
Evgeny Mankov
389b5ec957
[HIPIFY][ #1603 ] Fix
2019-10-29 22:10:36 +03:00
Evgeny Mankov
85087644da
[HIPIFY][Linux] Rollback --cuda-compile-host-device on Linux
...
[Reason] It doesn't work with LLVM 9 and higher; Windows is fine
2019-10-29 20:53:54 +03:00
Evgeny Mankov
3f2eefa82a
[HIPIFY] Introduce --cuda-compile-host-device for LLVM >= 9
...
* LLVM < 9 continues using --cuda-host-only
2019-10-29 19:42:53 +03:00
Evgeny Mankov
315a10a59d
[HIPIFY] cudaMemcpy2DFromArray(Async) support
2019-10-29 19:12:42 +03:00
Evgeny Mankov
b6e6f12b54
[HIPIFY] Disable delayed template parsing
...
By implicit unconditional passing -fno-delayed-template-parsing option (which appeared in LLVM 3.8.0, thus doesn't need compatibility wrapping) to hipify-clang.
[Reason] To parse uncalled template functions otherwise they are not parsed without calling, thus not hipified.
Affects cub_03.cu test, which has uncalled global template function.
2019-10-22 19:07:37 +03:00
Evgeny Mankov
6f88c81a78
[HIPIFY][ #1569 ] Fix
2019-10-22 11:08:37 +03:00
Evgeny Mankov
b08f29a6fa
[HIPIFY][perl] Support of 'using namespace cub'
2019-10-21 17:15:05 +03:00
Evgeny Mankov
98874c0e7f
[HIPIFY][CUB][ #1460 ] Add "using namespace cub" translation support
...
+ Add cub_03.cu
2019-10-18 18:51:40 +03:00
Evgeny Mankov
edfd05a86d
[HIPIFY][CUB][ #1460 ] Add cub:: namespace support in TemplateInstantiation of cudaLaunchKernel
...
+ Update cub_02.cu test accordingly
2019-10-16 19:02:13 +03:00
Evgeny Mankov
809a67a4f6
[HIPIFY] Refactor a couple of matcher functions
...
+ Separate out GetSubstrLocation function for finding substr SourceLocation in a given SourceRange
2019-10-16 13:43:56 +03:00
Evgeny Mankov
6960574850
[HIPIFY][CUB][ #1460 ] Implement cubFunctionTemplateDecl matcher
...
+ Add cub_02.cu test
+ Partial fixes #1460
2019-10-16 13:08:11 +03:00
Evgeny Mankov
c0f62157f9
[HIPIFY] HipifyAction code clean-up
2019-10-14 18:08:29 +03:00
Evgeny Mankov
2994fb3429
[HIPIFY][build fix] Add missing new source file
2019-10-14 16:32:57 +03:00
Evgeny Mankov
277d3b8369
[HIPIFY][CUB] Initial support (hipify-clang only)
...
+ Add one matcher (will be more)
+ Update Maps and Statistics
+ Add cub_01.cu unit test
+ Update lit harness to support standalone CUB
+ Update README.md
+ Update hipify-perl (only CUB header is supported for now)
[IMPORTANT]
clang (and hipify-clang) works correctly only with official NVLabs version on GitHub.
Compilation of CUB from official CUDA release has conflicts with THRUST.
Thus, to compile CUB sources, option "-I" should be specified to the cloned CUB from NVLAB on GitHub.
2019-10-14 11:55:55 +03:00
Evgeny Mankov
876af8f381
[HIPIFY][perl] Add "important" notice
...
# IMPORTANT: Do not change this file manually: it is generated by hipify-clang --perl
2019-10-10 18:25:26 +03:00