Zack Galbreath
f3369ee1d8
SWDEV-264220 - Provide CMake hip language configuration information
...
This provides the required information for CMake to bootstrap
HIP language and runtime support. In particular this file
is consumed by CMake during HIP compiler detection to
determine the required flags needed for compilation and
linking.
Initial design was discussed in #2158
Add copyright / license header
Change-Id: I10acb860bf6291b2deb6b678e6e916faa7c82c2a
[ROCm/clr commit: ddb061cecf ]
2021-02-10 08:26:35 -05:00
cjatin
c31897edcf
SWDEV-252745 - Adding rtc options transformer
...
Change-Id: Ib250689906a35f81255398e53da979774361dbfa
[ROCm/clr commit: caf9b2b108 ]
2021-02-09 13:35:30 -05:00
agodavar
390565d4b7
SWDEV-271096 - Handle depth zero in hipMalloc3D
...
Change-Id: I0ef0cc825e20b3480e9e5476e09dde5f73cdd3ea
[ROCm/clr commit: 8f85d89812 ]
2021-02-09 08:39:44 -05:00
Jatin Chaudhary
3de1a22c48
SWDEV-271274 - Remove hip init call from hipUnregisterBinary, this call ends up initializing rocclr and hsa even when there is no hip call in the entire file
...
Change-Id: I20c1d3079c6032d79c5b892d5616921f7aeb4fe2
[ROCm/clr commit: 7b6244b641 ]
2021-02-09 07:59:32 -05:00
agodavar
f379ff60bd
SWDEV-269085 - Add support for build with ADDRESS_SANITIZER
...
Change-Id: I102cbe197727ec059d3dc9fae3a41bb559b0dff1
[ROCm/clr commit: eb58a0285c ]
2021-01-29 01:54:43 -05:00
Vladislav Sytchenko
4987cc7052
SWDEV-1 - Fix Windows build
...
Change-Id: I20c727a8718941694da6dc024efdfd1eb6af828b
[ROCm/clr commit: f174d98893 ]
2021-01-28 10:22:25 -05:00
agodavar
4017a88253
SWDEV-269400 - handle nullptr in hipFuncGetAttributes and blockSizeLimit<0 in hipModuleOccupancyMaxPotentialBlockSize
...
Change-Id: Ia1c6e5713f40876b4a9c7a1c56b7b3a589c4497a
[ROCm/clr commit: 160f0edffa ]
2021-01-27 23:41:31 -05:00
agodavar
53a0b62f82
SWDEV-268552 - HIP sample segfaults during hipModuleLoad, fix mmap bug
...
Change-Id: I51c6061e7ac6b2524586d96fdd69b9f084b1906a
[ROCm/clr commit: 2d2f127b8a ]
2021-01-27 23:39:50 -05:00
Rahul Garg
447657f32d
SWDEV-270166 - Remove Linux specific includes
...
Change-Id: I929285941f28941cb41718f9fb8f618d11f1a69b
[ROCm/clr commit: fecaab1179 ]
2021-01-27 12:10:37 -05:00
agodavar
0cf97308ae
SWDEV-267154 - Add checks for grid and block dimensions 0
...
Change-Id: I54799c0a4a42a91f6226f94a1e3ff7bc79046a98
[ROCm/clr commit: a16d91a708 ]
2021-01-27 00:32:31 -05:00
Vladislav Sytchenko
29dd5f95ad
SWDEV-1 - Fix Windows build
...
Change-Id: I144142b2b31785fe7b1d319fb7e88eb2b41099ac
[ROCm/clr commit: 09c28dcbf4 ]
2021-01-26 15:51:57 -05:00
Joseph Greathouse
de014d4042
SWDEV-269756 - Add missing Cooperative Groups error string
...
Change-Id: I1833f8bb4b48b19bb3d6cac57dda429231cf3562
[ROCm/clr commit: 51e53b6b56 ]
2021-01-22 15:48:18 -06:00
Tony Tye
cfc4640981
SWDEV-268864 - Use new isa class to access isa related information (part 2)
...
Change-Id: If7ed535b3012aec3f2cb4eb7ab93d8f5aed9783f
[ROCm/clr commit: 6b641fb368 ]
2021-01-19 03:36:22 +00:00
Tony Tye
c9c78bca63
SWDEV-268864 - Use new isa class to access isa related information
...
Change-Id: I2122bf85155997d802ca54e456c2dae66b801825
[ROCm/clr commit: cd1117d627 ]
2021-01-18 22:31:01 +00:00
Tony Tye
7d42f2535d
Use ROCclr Info.targetId_
...
Use Info.targetId_ instead of Info.name_ so it will work on Windows
PAL driver and ROCm.
Change-Id: I20537899c36c0ee330a4c09136a52e53d9f35e0d
[ROCm/clr commit: 7d35a43165 ]
2021-01-14 05:17:20 +00:00
Rahul Garg
f169546403
Add IPC Events support
...
Change-Id: Iac2bf3d5e1d9a993bebbb066c20d300d6f05558b
[ROCm/clr commit: 3829645039 ]
2021-01-08 20:09:26 +00:00
Tao Sang
eeb275d643
Remove hip-hcc codes: Part four
...
Remove __HCC__, __HCC_ONLY__, __HCC_CPP__, __HCC_C__,
__HCC_OR_HIP_CLANG__, __HIP_ROCclr__ and their guarded codes.
Remove Hcc codes from directed_tests and samples.
Remove __HIP_PLATFORM_HCC__ and __HIP_PLATFORM_NVCC__ from
some files where they are not necessary.
Add deprecation notice.
Change-Id: I1ae467eafd749d6c25bca204c1724b026be21fce
[ROCm/clr commit: d504a761ad ]
2021-01-08 10:53:34 -05:00
agodavar
efe86a0f88
SWDEV-245381: Updated guarantee error messages to print based on BUILD_TYPE
...
Change-Id: Ifafbc075d6b9860da040c72859127c4e638a786f
[ROCm/clr commit: 6838df46eb ]
2021-01-05 23:29:50 -05:00
Tao Sang
2c1c9f78d6
Remove hip-hcc codes: Part three
...
1.Rename include/hip/hcc_detail/ as include/hip/amd_detail/
2.Rename include/hip/nvcc_detail/ as include/hip/nvidia_detail/
3.Create __HIP_PLATFORM_AMD__ to replace __HIP_PLATFORM_HCC__
4.Create __HIP_PLATFORM_NVIDIA__ to replace __HIP_PLATFORM_NVCC__
After hcc_detail, nvcc_detail, __HIP_PLATFORM_HCC__ and __HIP_PLATFORM_NVCC__
have been removed from upstream, they will be removed from hip runtime.
Change-Id: I1ae457effd739d6c25bca203c1724b026be21fce
[ROCm/clr commit: 8a2b0b7424 ]
2021-01-05 10:39:31 -05:00
Satyanvesh Dittakavi
7fec171e78
SWDEV-263678 - fix rocHPCG mgpu perf drop
...
Change-Id: I33269fe4f6165d1ed172b19033ab9fcb92f338c3
[ROCm/clr commit: 15baf7ef6d ]
2021-01-05 00:22:12 -05:00
cjatin
42dfa8e5c4
Add ELF Flags moved from rocclr
...
Change-Id: I5febe7bdca80517e9f9492d7930def72db83c14e
[ROCm/clr commit: 6faffdffd2 ]
2021-01-04 13:43:16 -05:00
Sarbojit Sarkar
fae1bcd07c
Revert "Fix hipmemset to match CUDA behavior"
...
This reverts commit 76a2999f22 .
Change-Id: I53052b25bac4956f3efd124eadc936197f2e466a
[ROCm/clr commit: f64af513a2 ]
2021-01-01 00:11:58 -05:00
agodavar
ceb68b8d4f
hipmemcpy2D handle height 0
...
Change-Id: I46bf89e81559c3bfccac0dd0ccd78eee9058c7e3
[ROCm/clr commit: 7dcf2769ae ]
2020-12-31 01:41:56 -05:00
agodavar
47604611de
SWDEV-266089: hipStreamAddCallback argument validation
...
Change-Id: I3e61006796e88b4e2ba029118c95f3499959257b
[ROCm/clr commit: c5e3f955bf ]
2020-12-29 05:42:54 -05:00
agodavar
e85f1404e8
SWDEV-263180 : Fix null ptr dereference
...
Change-Id: Iefc9fa3f195af45a5c5ebe075056246c930a6d84
[ROCm/clr commit: d74777d2a7 ]
2020-12-19 02:02:54 -05:00
Rahul Garg
76a2999f22
Fix hipmemset to match CUDA behavior
...
Make hipMemset asynchronous with respect to the host unless
destination pointer refers to pinned host memory.
Change-Id: I5ba230e0cc622aa076dc94692a4c43a57dd2df7b
[ROCm/clr commit: 9ba5902be4 ]
2020-12-17 19:13:31 +00:00
Evgeny
024774c58a
SWDEV-259683 : hipprof: adding hipApiIdByName() method
...
Change-Id: I1ad2be76efc9fb690ed7c9c2b1091f7eb0c04a31
[ROCm/clr commit: e54f2a1af1 ]
2020-12-15 15:42:10 -05:00
Satyanvesh Dittakavi
c832ef9e7c
SWDEV-258754 Fix seg fault hipMemset with device pointer mapped from hipHostRegister
...
Change-Id: Ifab66b67df172812ebb6eb25c2bac71821f4d614
[ROCm/clr commit: f06393c75f ]
2020-12-15 07:44:34 -05:00
Satyanvesh Dittakavi
1f654026d7
Fix hipPointerGetAttributes
...
Modified hipPointerGetAttributes to support hipHostRegister ptrs and mapped device ptrs from hipHostRegister
Change-Id: I2f4cf12e09578768308f644123d6d4bdccbd77a8
[ROCm/clr commit: 40733e1fff ]
2020-12-15 01:40:24 -05:00
Sarbojit Sarkar
80075304f1
Updated review comment
...
Change-Id: Ic7f9f33dd23c975f2a7a0f0d485a3d2a457c62bb
[ROCm/clr commit: 1ef88375c2 ]
2020-12-13 11:30:28 -05:00
Tao Sang
68554aa473
Some improvements on hip cmake file
...
1.Fix unexpected repeated hip runtime lib building
2.Seperate test cmake from top cmake.
Change-Id: I1ae457effd639d6c25bca293c1724b026be21ecd
[ROCm/clr commit: a7aa84f73a ]
2020-12-11 13:32:15 -05:00
Rahul Garg
7ef0e83499
Handle overflow
...
Fixes SWDEV-261712
Change-Id: I730fcdca8c2640fde9cfdfe2f4b4cf4894807fed
[ROCm/clr commit: 584771e7a2 ]
2020-12-09 19:09:43 -05:00
Saleel Kudchadker
662d3c2964
Honor hipEventDisableTiming event flag
...
Change-Id: Ia949db96e81b9af467f04ab40d143e8d6faa9394
[ROCm/clr commit: 08a65054ea ]
2020-12-09 15:10:18 -05:00
Jatin Chaudhary
c5feb4d862
Updating the gcnArchName to now have target id
...
Change-Id: Ibd5576e0fb5b46e8f212de4ec57cd96eb1d3c157
[ROCm/clr commit: 24b997119f ]
2020-12-09 01:22:08 -05:00
Jatin Chaudhary
8aa2ebb4de
Adding checks for function, size and params in ihipModuleLaunchKernel to have common message for hipModuleLaunch and hipExtModuleLaunch
...
Change-Id: I11921ad753930872572571dbfd1c12daba83a725
[ROCm/clr commit: dfe6f1ef27 ]
2020-12-07 03:17:14 -05:00
Saleel Kudchadker
c43e5d83dd
Add a new flag for profilingInfo to record gpu TS
...
Add a flag to record gpu TS in a marker, also disable marker flush
if there was already a marker submitted before.
Change-Id: I9cdf8e49137690c0050fe9370764dd059855a2f8
[ROCm/clr commit: db7ed1a78c ]
2020-12-03 13:45:39 -05:00
agodavar
9ae4798aa7
SWDEV-256810 : hipMemcpy2D API handle width, src/dst pitch 0
...
Change-Id: I4f60b220624f4235c0c3daf68adcd5a496e93696
[ROCm/clr commit: 273e83ff6c ]
2020-12-03 10:34:12 -05:00
Sarbojit Sarkar
83e94d189c
SWDEV-258579: hipMemcpy2D better error handling
...
Change-Id: I09378d6e31da99451e22cbe9276a5ff1ad4a1840
[ROCm/clr commit: a08ddb4b53 ]
2020-12-03 05:50:42 -05:00
agodavar
2e6334e080
SWDEV-259210 : Handle invalid inputs for hipDeviceGetByPCIBusId and hipDeviceGetPCIBusId APIs
...
Change-Id: Iab48604941c4c715ee3357ace2e2d26dbc8cad33
[ROCm/clr commit: ef415ec610 ]
2020-12-02 00:01:54 -05:00
Tony
0d2004544b
Add additional targets
...
Add support for loading the following targets:
- gfx705
- gfx805
- gfx90c
- gfx1031
- gfx1032
- gfx1033
Change-Id: Ib7f61c33662619757409e95fb0b50068f9e11065
[ROCm/clr commit: 8493142a22 ]
2020-11-23 20:31:45 +00:00
Aryan Salmanpour
4376b55b25
Add support for hipExtStreamGetCUMask API
...
Change-Id: I0fa67ad581dd75556f17c7410af2c1d5cb6ae99a
[ROCm/clr commit: 00268eaeed ]
2020-11-20 13:41:38 -05:00
Satyanvesh Dittakavi
8d4b0ecb0c
SWDEV-255614: Fix Caffe2 Test Failure
...
Change-Id: I043caa89b2a43dace7f18c739f30d2a7bfa644ca
Fixes the issue when memcpy DtoH is performed on device 0 where the device buffer
is allocated on device1 and the destination pinned buffer is allocated from device 0.
[ROCm/clr commit: 60ec2a3e46 ]
2020-11-20 10:24:50 -05:00
Vladislav Sytchenko
07f463ab3f
Report maxTexture1DLinear property
...
Change-Id: If562bbee80d8b98712806cb8258b5a7482d33bf6
[ROCm/clr commit: 63167e4b70 ]
2020-11-20 10:18:20 -05:00
Rahul Garg
5a56ff9cfa
Fix async flag in hipMemset3DAsync
...
Change-Id: I3dc717c14bdd1d46873e03c687bdf57f9202663e
[ROCm/clr commit: 236352a64d ]
2020-11-18 20:32:18 -05:00
Yaxun (Sam) Liu
24d1c8c229
Fix embedding PCH
...
Change-Id: Ibaf043c9e331f15965185cd4195da98d9441cba3
[ROCm/clr commit: cdc7f3f49e ]
2020-11-18 00:56:42 -05:00
Rahul Garg
908decb338
Fix hipDeviceGetByPCIBusId
...
SWDEV-260845
Change-Id: I2d6db15906d794c9ebfa85b745a2c1bbb6f3e731
[ROCm/clr commit: d11027c522 ]
2020-11-16 23:28:52 +00:00
Tao Sang
f3b3c0ba9c
Remove unnecessary stuff from hip cmakefile
...
Remove the following from hip cmakefile,
1.find_package cmds of hsa-runtime64 and amd_comgr;
2.macros of USE_COMGR_LIBRARY and COMGR_DYN_DLL
because they have already been used in Rocclr cmakefile.
cmake mechanism will make hip cmakefile inherite them.
Change-Id: I03b527fc4135c79bb35cbbfe419211ec363cb067
[ROCm/clr commit: 10f4918d97 ]
2020-11-13 15:01:32 -05:00
agodavar
4bb6e01ea3
SWDEV-249870: Generate Pre-Compiled Headers from includes in source repo for Online Compilation
...
Change-Id: I663f510603e983927f80f7944df4d039ba7bc0b0
[ROCm/clr commit: 9ef681a618 ]
2020-11-12 10:50:33 -05:00
German Andryeyev
0cdff99dd0
Add an early exit if it's a null stream wait
...
Change-Id: I577f5da2f928bff172d64d511a60e08eda28c81d
[ROCm/clr commit: d4e642203c ]
2020-11-11 13:20:04 -05:00
Konstantin Zhuravlyov
1b1b2998ad
SWDEV-198415 - Implement Target ID Proposal
...
Changes from Jatin Chaudhary, Tony Tye
Change-Id: I14904920ad2356ae2098cf827b83613089d33962
[ROCm/clr commit: 73fb01cb3a ]
2020-11-10 13:31:43 -05:00