Maneesh Gupta
11fe5b06de
Merge in the rocclr based hip runtime ( #2032 )
...
* Merge master-next changes in master (include vdi development in master branch)
[ROCm/clr commit: f2e1118d7a ]
2020-04-23 09:12:06 -07:00
Evgeny Mankov
bc365c1349
[HIP][SPARSE] sync with HIPIFY's #95 and #96
...
Based on:
https://github.com/ROCm-Developer-Tools/HIPIFY/pull/95
https://github.com/ROCm-Developer-Tools/HIPIFY/pull/96
Update hipify-perl and CUSPARSE_API_supported_by_HIP.md accordingly
[ROCm/clr commit: f2205827bb ]
2020-04-10 19:36:43 +03:00
Evgeny Mankov
677f9a3eb7
[HIPIFY][perl] Fix missed sync with hipify-clang
...
[ROCm/clr commit: 758b3864b7 ]
2020-03-18 14:24:02 +03:00
Evgeny Mankov
a82c69da48
[HIPIFY][SPARSE] sync with hipSPARSE's "added csrsm2" ( #83 )
...
+ https://github.com/ROCmSoftwarePlatform/hipSPARSE/pull/83
+ Update doc and hipify-perl accordingly
[ROCm/clr commit: 126ebadcc6 ]
2020-03-18 13:44:50 +03:00
Evgeny Mankov
be4ba44d12
[HIPIFY][SPARSE] sync with hipSPARSE
...
+ Update doc and hipify-perl accordingly
[ROCm/clr commit: baa0c68ab4 ]
2020-03-18 13:07:46 +03:00
Sarbojit2019
51087a9a46
[HIPIFY] Add back missing execute permission to hipify-perl ( #1881 )
...
hipify-perl script lost its executable permission hence "samples/0_Intro/square" was failing. Fixes SWDEV 223433.
[ROCm/clr commit: d81a9a712a ]
2020-02-19 13:48:20 +05:30
Aryan Salmanpour
54aca29012
update the hipify-perl
...
[ROCm/clr commit: d805e98fcb ]
2020-01-31 14:36:37 -05:00
Aryan Salmanpour
cbefd62db9
code clean up
...
[ROCm/clr commit: 75572a4175 ]
2020-01-31 13:08:25 -05:00
Aryan Salmanpour
2733df36b5
[HIP][HIPIFY] Add some missing flags for cooperative launch and occupancy APIs
...
[ROCm/clr commit: 6db9b782be ]
2020-01-30 15:05:53 -05:00
Evgeny Mankov
271c1447e2
[HIPIFY] Sync with hipSPARSE
...
+ Update hipify-perl and doc accordingly
[ROCm/clr commit: 41beed4839 ]
2020-01-13 18:34:10 +03:00
Evgeny Mankov
e25a6a39a3
[HIP] Unify hipError_t (Step 2)
...
Step 2. Make a few hipError codes deprecated
Update hipify-clang, hipify-perl, docs and samples accordingly
[ROCm/clr commit: 9ae76609a1 ]
2019-12-22 02:05:31 +03:00
Evgeny Mankov
abcc1db917
[HIPIFY] Revise HIP runtime
...
+ hipMemAllocHost is deprecated, use hipHostMalloc instead
+ hipMemAllocManaged -> hipMallocManaged
+ hipFreeHost -> hipHostFree
+ cudaMemset3D(Async) -> hipMemset3D(Async)
+ update docs and hipify-perl accordingly
[ROCm/clr commit: 1108ef06e1 ]
2019-12-16 20:09:55 +03:00
Evgeny Mankov
7480c5aace
[HIPIFY][BLAS] Sync with cuBlas/rocblas/hipBlas
...
[ROCm/clr commit: c7bea1f865 ]
2019-12-12 19:52:18 +03:00
Evgeny Mankov
8477ab5d86
[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
[ROCm/clr commit: 43441eb99c ]
2019-12-04 18:37:31 +03:00
Evgeny Mankov
f6da983c96
[HIPIFY] CUDA 10.2 fp_16 support
...
[ROCm/clr commit: 721a8540c0 ]
2019-12-04 13:27:46 +03:00
Evgeny Mankov
deaf478ced
[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
[ROCm/clr commit: 33f81effb1 ]
2019-12-04 12:25:20 +03:00
Evgeny Mankov
5317d618d1
[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
[ROCm/clr commit: 636108aaa9 ]
2019-11-29 19:29:11 +03:00
Evgeny Mankov
43d286e9ce
[HIPIFY][CUB][ #1460 ][perl] Add "cub::" namespace prefix support in hipify-perl as well
...
[ROCm/clr commit: c5a2a2daf2 ]
2019-11-01 14:34:18 +03:00
Evgeny Mankov
bb75fa46f0
[HIPIFY] cudaMemcpy2DFromArray(Async) support
...
[ROCm/clr commit: 5dd00bdf52 ]
2019-10-29 19:12:42 +03:00
Evgeny Mankov
82222bf945
[HIPIFY][ #1569 ] Fix
...
[ROCm/clr commit: e2191e23e6 ]
2019-10-22 11:08:37 +03:00
Evgeny Mankov
de849a44e7
[HIPIFY][perl] Support of 'using namespace cub'
...
[ROCm/clr commit: 9633cdbd8a ]
2019-10-21 17:15:05 +03:00
Evgeny Mankov
e066bba058
[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.
[ROCm/clr commit: 97df38903a ]
2019-10-14 11:55:55 +03:00
Evgeny Mankov
84e74b1b6c
[HIPIFY][perl] Add "important" notice
...
# IMPORTANT: Do not change this file manually: it is generated by hipify-clang --perl
[ROCm/clr commit: 0ee069bad7 ]
2019-10-10 18:25:26 +03:00
Evgeny Mankov
808f59cd1c
[HIPIFY][ #1487 ][fix] Translate correctly kernel names prefixed with namespace
...
+ Modify CUDA2HIP_perl for the fix
+ Add ns_kernel_launch.cu test
+ Update hipify-perl by hipify-clang -perl
[ROCm/clr commit: 4a2d87b70c ]
2019-10-08 15:58:48 +03:00
Evgeny Mankov
c08b24a569
[HIPIFY] Sync with HIP
...
+ Update hipify-perl accordingly
[ROCm/clr commit: 59c5220c2f ]
2019-10-07 14:44:05 +03:00
Evgeny Mankov
48224daaa3
[HIPIFY][SPARSE] sync with hipSPARSE
...
+ Update doc and hipify-perl accordingly
[ROCm/clr commit: 201e6deaac ]
2019-10-05 15:53:04 +03:00
ansurya
efc64a4f8a
Added new Memory API's ( #1399 )
...
Added new memory API's hipMemAllocPitch, hipMemAllocHost, hipMemsetD16, hipMemsetD16Async, hipMemsetD8Async
Modified to support all scenarios hipMemcpyParam2DAsync, hipMemcpyParam2D.
[ROCm/clr commit: 96890792b0 ]
2019-10-04 13:36:31 +05:30
Evgeny Mankov
cc2af89494
[HIPIFY] Finishing with generation of hipify-perl
...
+ hipify-perl script is entirely generated by hipify-clang under an option -perl now
+ hipify-perl still has correctness gaps comparing to hipify-clang: they will be eliminated AMAP further
[ROCm/clr commit: 94aac73b3b ]
2019-10-03 16:00:52 +03:00
Evgeny Mankov
85ae269393
[HIPIFY] Return to wrapping with HIP_KERNEL_NAME(...) macro of a template instantiation kernel launch
...
[REASON]
1. hip-clang is fine with the templated kernel launch, brackets are unneeded: HIP_KERNEL_NAME(...) __VA_ARGS__
2. HCC is not, thus: HIP_KERNEL_NAME(...) (__VA_ARGS__)
[TODO] Clean-up entirely kernel name wrapping when HCC is finally obsolete.
+ Update perl generation, hipify-perl, and affected tests accordingly.
[ROCm/clr commit: fee2f0fa78 ]
2019-10-02 16:01:07 +03:00
Evgeny Mankov
6dab0c3faa
[HIPIFY][ #1490 ][fix] Populate the list of supported device atomic functions
...
+ Update hipify-perl accordingly
+ Add atomics.cu test on all atomics
[ROCm/clr commit: 2371150401 ]
2019-10-01 13:57:46 +03:00
Evgeny Mankov
aaa4495aeb
[HIPIFY][perl] Generate transformKernelLaunch
...
+ Update hipify-perl accordingly
+ Minor refactoring
[ROCm/clr commit: 0d8d0f1ebc ]
2019-10-01 11:17:27 +03:00
Evgeny Mankov
1886fdcbeb
[HIPIFY][perl] Generate transformExternShared function
...
+ Update hipify-perl accordingly
[ROCm/clr commit: bf5546f35e ]
2019-09-30 17:47:46 +03:00
Evgeny Mankov
4d2de06f2c
[HIPIFY][perl] Generate simpleSubstitutions function
...
+ Update hipify-perl accordingly
[ROCm/clr commit: 4860559996 ]
2019-09-30 16:53:19 +03:00
Evgeny Mankov
20496c8486
[HIPIFY] Reconcile transformation (statistics) types between hipify-clang and hipify-perl
...
+ Update hipify-perl accordingly
[ROCm/clr commit: b42a476614 ]
2019-09-29 17:33:37 +03:00
Evgeny Mankov
f876daa083
[HIPIFY][perl] Code clean-up before continuing generation
...
[ROCm/clr commit: cdd1888293 ]
2019-09-28 20:44:15 +03:00
Evgeny Mankov
a48cfd56e9
[HIPIFY] Generate more hipify-perl (continuation)
...
+ Minor hipify-perl clean-up
+ Minor CUDA2HIP_Perl refactoring
[ROCm/clr commit: 0d36e13ce9 ]
2019-09-27 19:10:54 +03:00
Evgeny Mankov
a5a10dc4f9
[HIPIFY] Add supported fp16 functions
...
+ Update hipify-perl accordingly
[ROCm/clr commit: ff1699397b ]
2019-09-26 18:13:20 +03:00
Evgeny Mankov
3ee668a9b9
[HIPIFY][ #1439 ] Add reinterpret_cast to args of some functions
...
+ Perl part of [#1458 ]
+ Affected functions: hipFuncSetCacheConfig, hipFuncGetAttributes
+ Implement function generateHostFunctions() in hipify-clang for that purposes
+ Update hipify-perl accordingly
[ROCm/clr commit: 1db7c1d694 ]
2019-09-25 18:53:17 +03:00
Evgeny Mankov
1fa72c7dc8
[HIPIFY][perl] Get rid of obsolete warnings on cuBLAS and cuRAND
...
[ROCm/clr commit: 76f2202abf ]
2019-09-25 17:37:41 +03:00
Evgeny Mankov
ef23cdda41
[HIPIFY][ #1435 ][perl] Add HIP_SYMBOL wrapper to the templated Device Symbol argument of the following functions:
...
cudaMemcpyToSymbol, cudaMemcpyToSymbolAsync, cudaGetSymbolSize, cudaGetSymbolAddress, cudaMemcpyFromSymbol, cudaMemcpyFromSymbolAsync
+ Perl part of [#1441 ]
+ Implement function generateSymbolFunctions() in hipify-clang for that purposes
+ Update hipify-perl
TODO: Eliminate dim3() issue in hipify-perl as well
[ROCm/clr commit: 72a658295f ]
2019-09-21 07:33:17 +03:00
Evgeny Mankov
b6aa917b43
[HIPIFY][ #1437 ] Fix: cudaFuncGetAttributes to hipFuncGetAttributes is supported
...
+ Update hipify-perl and CUDA_Runtime_API_functions_supported_by_HIP.md accordingly
[ROCm/clr commit: a49f9924a7 ]
2019-09-18 17:57:31 +03:00
Evgeny Mankov
c2f3ca9225
[HIPIFY] Add supported device functions (from device_functions.h)
...
+ [perl] Sync hipify-perl accordingly
[ROCm/clr commit: 05d71d4b8b ]
2019-09-18 17:07:50 +03:00
Evgeny Mankov
3d744756a1
[HIPIFY] Add supported device functions (from math_functions.h)
...
+ [perl] Add generation of sub countSupportedDeviceFunctions
+ [FIX] Do not perform any replacement for supported device functions
+ [perl] Sync hipify-perl accordingly
[ROCm/clr commit: 33cd4dffd5 ]
2019-09-17 16:17:28 +03:00
Evgeny Mankov
3f90cba68a
[HIPIFY][perl][fix] Treat ::device_function as a device function
...
+ Do not treat somenamespace::device_function_name as a device function
+ Fix generation of warnUnsupportedDeviceFunctions function in hipify-clang
+ Update hipify-perl based on hipify-clang -perl generation
+ Update device test math_functions.cu for hipify-perl
[Restrictions]
- hipify-perl is yet unable to handle function declarations in user namespaces
- hipify-perl is yet unable to handle using directive
[ROCm/clr commit: b43bb7d3c1 ]
2019-09-16 17:36:55 +03:00
ansurya
4436a38e65
Added new device attributes ( #1377 )
...
* Added new device attributes
* updated comment
* updated with new device attributes supported
[ROCm/clr commit: e2a934f377 ]
2019-09-16 08:31:30 +00:00
Evgeny Mankov
7e629aa218
[HIPIFY][perl] Syn with hipify-clang
...
[ROCm/clr commit: 422403a3ff ]
2019-09-15 15:25:40 +03:00
Evgeny Mankov
4cfb3aa7b7
[HIPIFY][ #1400 ] Fix Template Instantiation kernel launch (clang & perl)
...
+ Enclose template instantiation kernel calls into round brackets, leave regular kernel names unchanged (hipify-perl doesn't handle cases with macros).
+ Fix corresponding tests.
PS. hipify-perl couldn't handle correctly the following cases due to macros expansion disability, thus hipify-clang should be used instead:
#define KERNEL_NAME_MACRO axpy<float>
#define KERNEL_CALL_MACRO axpy<float><<<1, 2>>>
#define KERNEL_ARG_LIST_MACRO a, x, y
// CUDA:
KERNEL_NAME_MACRO<<<1, 2>>>(KERNEL_ARG_LIST_MACRO);
KERNEL_CALL_MACRO(KERNEL_ARG_LIST_MACRO);
// hipify-perl:
hipLaunchKernelGGL(KERNEL_NAME_MACRO, dim3(1), dim3(2), 0, 0, KERNEL_ARG_LIST_MACRO);
KERNEL_CALL_MACRO(KERNEL_ARG_LIST_MACRO);
// hipify-clang:
hipLaunchKernelGGL((KERNEL_NAME_MACRO), dim3(1), dim3(2), 0, 0, KERNEL_ARG_LIST_MACRO);
hipLaunchKernelGGL((axpy<float>), dim3(1), dim3(2), 0, 0, KERNEL_ARG_LIST_MACRO);
[ROCm/clr commit: 4e3845be83 ]
2019-09-10 15:59:06 +03:00
Evgeny Mankov
8dfefa1f9a
[HIPIFY][perl] Code cleanup (preparation for generating)
...
[ROCm/clr commit: f114a79462 ]
2019-09-05 11:52:59 +03:00
Evgeny Mankov
a9d5b1e29e
[HIPIFY][perl] Sync hipify-perl with hipify-clang
...
Sync by means of semi-automatic generation: hipify-clang -perl
[ROCm/clr commit: 0ca6525d90 ]
2019-09-04 17:07:45 +03:00
Evgeny Mankov
73e71db792
[HIPIFY][perl] Code cleanup and formatting
...
[ROCm/clr commit: 7ab9afe513 ]
2019-09-04 16:37:26 +03:00