Maneesh Gupta
f2e1118d7a
Merge in the rocclr based hip runtime ( #2032 )
...
* Merge master-next changes in master (include vdi development in master branch)
2020-04-23 09:12:06 -07:00
Evgeny Mankov
f2205827bb
[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
2020-04-10 19:36:43 +03:00
Evgeny Mankov
758b3864b7
[HIPIFY][perl] Fix missed sync with hipify-clang
2020-03-18 14:24:02 +03:00
Evgeny Mankov
126ebadcc6
[HIPIFY][SPARSE] sync with hipSPARSE's "added csrsm2" ( #83 )
...
+ https://github.com/ROCmSoftwarePlatform/hipSPARSE/pull/83
+ Update doc and hipify-perl accordingly
2020-03-18 13:44:50 +03:00
Evgeny Mankov
baa0c68ab4
[HIPIFY][SPARSE] sync with hipSPARSE
...
+ Update doc and hipify-perl accordingly
2020-03-18 13:07:46 +03:00
Sarbojit2019
d81a9a712a
[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.
2020-02-19 13:48:20 +05:30
Aryan Salmanpour
d805e98fcb
update the hipify-perl
2020-01-31 14:36:37 -05:00
Aryan Salmanpour
75572a4175
code clean up
2020-01-31 13:08:25 -05:00
Aryan Salmanpour
6db9b782be
[HIP][HIPIFY] Add some missing flags for cooperative launch and occupancy APIs
2020-01-30 15:05:53 -05:00
Evgeny Mankov
41beed4839
[HIPIFY] Sync with hipSPARSE
...
+ Update hipify-perl and doc accordingly
2020-01-13 18:34:10 +03:00
Evgeny Mankov
9ae76609a1
[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
1108ef06e1
[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
c7bea1f865
[HIPIFY][BLAS] Sync with cuBlas/rocblas/hipBlas
2019-12-12 19:52:18 +03:00
Evgeny Mankov
43441eb99c
[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
721a8540c0
[HIPIFY] CUDA 10.2 fp_16 support
2019-12-04 13:27:46 +03:00
Evgeny Mankov
33f81effb1
[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
636108aaa9
[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
Evgeny Mankov
c5a2a2daf2
[HIPIFY][CUB][ #1460 ][perl] Add "cub::" namespace prefix support in hipify-perl as well
2019-11-01 14:34:18 +03:00
Evgeny Mankov
5dd00bdf52
[HIPIFY] cudaMemcpy2DFromArray(Async) support
2019-10-29 19:12:42 +03:00
Evgeny Mankov
e2191e23e6
[HIPIFY][ #1569 ] Fix
2019-10-22 11:08:37 +03:00
Evgeny Mankov
9633cdbd8a
[HIPIFY][perl] Support of 'using namespace cub'
2019-10-21 17:15:05 +03:00
Evgeny Mankov
97df38903a
[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
0ee069bad7
[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
Evgeny Mankov
4a2d87b70c
[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
2019-10-08 15:58:48 +03:00
Evgeny Mankov
59c5220c2f
[HIPIFY] Sync with HIP
...
+ Update hipify-perl accordingly
2019-10-07 14:44:05 +03:00
Evgeny Mankov
201e6deaac
[HIPIFY][SPARSE] sync with hipSPARSE
...
+ Update doc and hipify-perl accordingly
2019-10-05 15:53:04 +03:00
ansurya
96890792b0
Added new Memory API's ( #1399 )
...
Added new memory API's hipMemAllocPitch, hipMemAllocHost, hipMemsetD16, hipMemsetD16Async, hipMemsetD8Async
Modified to support all scenarios hipMemcpyParam2DAsync, hipMemcpyParam2D.
2019-10-04 13:36:31 +05:30
Evgeny Mankov
94aac73b3b
[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
2019-10-03 16:00:52 +03:00
Evgeny Mankov
fee2f0fa78
[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.
2019-10-02 16:01:07 +03:00
Evgeny Mankov
2371150401
[HIPIFY][ #1490 ][fix] Populate the list of supported device atomic functions
...
+ Update hipify-perl accordingly
+ Add atomics.cu test on all atomics
2019-10-01 13:57:46 +03:00
Evgeny Mankov
0d8d0f1ebc
[HIPIFY][perl] Generate transformKernelLaunch
...
+ Update hipify-perl accordingly
+ Minor refactoring
2019-10-01 11:17:27 +03:00
Evgeny Mankov
bf5546f35e
[HIPIFY][perl] Generate transformExternShared function
...
+ Update hipify-perl accordingly
2019-09-30 17:47:46 +03:00
Evgeny Mankov
4860559996
[HIPIFY][perl] Generate simpleSubstitutions function
...
+ Update hipify-perl accordingly
2019-09-30 16:53:19 +03:00
Evgeny Mankov
b42a476614
[HIPIFY] Reconcile transformation (statistics) types between hipify-clang and hipify-perl
...
+ Update hipify-perl accordingly
2019-09-29 17:33:37 +03:00
Evgeny Mankov
cdd1888293
[HIPIFY][perl] Code clean-up before continuing generation
2019-09-28 20:44:15 +03:00
Evgeny Mankov
0d36e13ce9
[HIPIFY] Generate more hipify-perl (continuation)
...
+ Minor hipify-perl clean-up
+ Minor CUDA2HIP_Perl refactoring
2019-09-27 19:10:54 +03:00
Evgeny Mankov
ff1699397b
[HIPIFY] Add supported fp16 functions
...
+ Update hipify-perl accordingly
2019-09-26 18:13:20 +03:00
Evgeny Mankov
1db7c1d694
[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
2019-09-25 18:53:17 +03:00
Evgeny Mankov
76f2202abf
[HIPIFY][perl] Get rid of obsolete warnings on cuBLAS and cuRAND
2019-09-25 17:37:41 +03:00
Evgeny Mankov
72a658295f
[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
2019-09-21 07:33:17 +03:00
Evgeny Mankov
a49f9924a7
[HIPIFY][ #1437 ] Fix: cudaFuncGetAttributes to hipFuncGetAttributes is supported
...
+ Update hipify-perl and CUDA_Runtime_API_functions_supported_by_HIP.md accordingly
2019-09-18 17:57:31 +03:00
Evgeny Mankov
05d71d4b8b
[HIPIFY] Add supported device functions (from device_functions.h)
...
+ [perl] Sync hipify-perl accordingly
2019-09-18 17:07:50 +03:00
Evgeny Mankov
33cd4dffd5
[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
2019-09-17 16:17:28 +03:00
Evgeny Mankov
b43bb7d3c1
[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
2019-09-16 17:36:55 +03:00
ansurya
e2a934f377
Added new device attributes ( #1377 )
...
* Added new device attributes
* updated comment
* updated with new device attributes supported
2019-09-16 08:31:30 +00:00
Evgeny Mankov
422403a3ff
[HIPIFY][perl] Syn with hipify-clang
2019-09-15 15:25:40 +03:00
Evgeny Mankov
4e3845be83
[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);
2019-09-10 15:59:06 +03:00
Evgeny Mankov
f114a79462
[HIPIFY][perl] Code cleanup (preparation for generating)
2019-09-05 11:52:59 +03:00
Evgeny Mankov
0ca6525d90
[HIPIFY][perl] Sync hipify-perl with hipify-clang
...
Sync by means of semi-automatic generation: hipify-clang -perl
2019-09-04 17:07:45 +03:00
Evgeny Mankov
7ab9afe513
[HIPIFY][perl] Code cleanup and formatting
2019-09-04 16:37:26 +03:00