Evgeny Mankov
ec79e26dcd
Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into HIP
2020-01-24 16:14:16 +03:00
aakanksha555
27275c6a2c
Fix for a syntax error in deb packages ( #1814 )
2020-01-24 16:23:47 +05:30
Evgeny Mankov
604c09f428
[HIP][HIPIFY] Readmes actualization
2020-01-23 20:55:10 +03:00
Evgeny Mankov
78255e4d4f
[HIPIFY][doc] Readme - update versions
2020-01-23 18:01:48 +03:00
Evgeny Mankov
e90e6e59c3
[HIPIFY][cmake] Formatting
2020-01-23 17:47:11 +03:00
Evgeny Mankov
145334eda2
[HIPIFY][cmake] Send error on CUDA 10.2 and higher as yet unsupported
2020-01-23 16:37:25 +03:00
Aakanksha Patil
7f78630124
[HIPIFY][cmake] Packaging for hipify-clang
2020-01-15 11:39:02 -05: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
0dadb23327
Merge pull request #1759 from emankov/master
...
[HIP] Unify hipError_t (Step 2)
2019-12-30 19:21:09 +03:00
Evgeny Mankov
3254c3e2c1
[HIPIFY][doc] LLVM 9.0.1 is the latest stable release now
...
+ Tested on Windows and Linux: no changes are needed
2019-12-23 20:00:33 +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
dd0bf8c7ff
[HIPIFY][doc] Update Readme.md: versioning
2019-12-20 20:55:19 +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
96839c82ae
[HIPIFY][build] Fix building with LLVM trunk
2019-12-13 15:42:27 +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
16c8ad0f99
[HIPIFY][doc] A few words about LLVM's FileCheck in README.md
2019-11-12 16:04:28 +03:00
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
96483d0de5
[HIPIFY][doc] Update README.md
...
+ Supported versions, testing
2019-11-06 19:18:13 +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
f563772a25
[HIPIFY][cmake][ #1572 ] Fix: Do not override CMAKE_INSTALL_PREFIX
...
Affects building with HIP, standalone building is not changed
2019-10-31 16:55:06 +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
75d70a6714
[HIPIFY][cmake][ #1571 ] Take into account building hipify-clang as a part of building HIP while installing
...
[Algorithm]
[Release]
If CMAKE_INSTALL_PREFIX is set by the user:
If BIN_INSTALL_DIR is set by HIP, use it as CMAKE_INSTALL_PREFIX, otherwise CMAKE_INSTALL_PREFIX is used unchanged.
If the user does not set CMAKE_INSTALL_PREFIX (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT):
If BIN_INSTALL_DIR is set by HIP, use it as CMAKE_INSTALL_PREFIX, otherwise use PROJECT_BINARY_DIR/bin for installation.
[Debug]
If CMAKE_INSTALL_PREFIX is set by the user:
CMAKE_INSTALL_PREFIX is used unchanged.
If the user does not set CMAKE_INSTALL_PREFIX (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT):
use CMAKE_CURRENT_SOURCE_DIR/bin for installation.
Standalone build left unchanged: CMAKE_INSTALL_PREFIX is used if set.
2019-10-23 18:54:45 +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