Commit Graph

5859 Commits

Author SHA1 Message Date
Satyanvesh Dittakavi 936d760a58 SWDEV-271491 - Fix flags for hipSetDeviceFlags on HIP-CUDA path
Change-Id: I29446d5cc5a26a4b83fa45175ccdf1d8f3a9ea40


[ROCm/clr commit: c2a767a66e]
2021-02-25 12:06:33 -05:00
Jatin Chaudhary 75e91e9073 SWDEV-272811 - hipCabs returns a double and uses sqrtf, which maps to f32 operation. sqrt should be used instead
Change-Id: I4f74ee8853113fcebfa508bea9308ae93c7ad13b


[ROCm/clr commit: 474493b929]
2021-02-25 08:47:19 -05:00
Satyanvesh Dittakavi 4f7df3c396 SWDEV-272082 - Fix Cooperative groups tests on HIP CUDA path
Change-Id: Icc68bc1e48c01ee120aaab17c928ffbbb96eae96


[ROCm/clr commit: 3abd25b1e9]
2021-02-25 04:54:27 -05:00
Rahul Garg 4ca5114b35 SWDEV-269604 - Revert "Update dispatch latency with wall time measurements"
This reverts commit be82aa43fb.

Hold wall time related updates till direct dispatch is ready.

Change-Id: I53b232f6f51bc2fc71b6b639fe0081e2907e9707


[ROCm/clr commit: 62c278c39d]
2021-02-25 04:50:44 +00:00
cjatin 3d0abe6803 SWDEV-273859 - Add --hip-version to comgr call
Change-Id: Iae6c1a5e958a73f5d9849c13c8b49eede914e25e


[ROCm/clr commit: 41d7c688c9]
2021-02-24 23:41:34 -05:00
Arya.Rafii 64f7d5b430 SWDEV-269246 - Fixed null-case logic for hipCtxPopCurrent
Change-Id: Ic173980caccde8afee85a75c55a5d536f421549e


[ROCm/clr commit: 5c2eb09624]
2021-02-24 13:20:24 -05:00
kjayapra-amd 9374c2bb93 SWDEV-274058 - Porting HIP, ROCclr gfx90a changes to mainline.
Change-Id: I02f53d4c7897d26243620cfc961fa9bd984cede4


[ROCm/clr commit: 20dd93a3be]
2021-02-24 09:55:43 -05:00
DURGESH KROTTAPALLI 781a11c2ae SWDEV-238517 - Enhancing hip unit tests
[dtest] Tests for hipEvent related APIs

Added Negative scenarios for hipEvent related APIs

1. Verifying all hipEvent related APIs by passing nullptr.
2. Pass illegal/unknown flag to hipEventCreateWithFlags API

Change-Id: Ia0a24065d16fe0f5ee28a88e280c25c1be0c3590


[ROCm/clr commit: 2a0593258c]
2021-02-24 06:29:26 -05:00
German Andryeyev ad0fb5721d SWDEV-272496 - Add marker if notification was the last command.
If MT is enabled, then a new callback can be received before the previous
command is processed, causing a conflict of 2 callbacks.

Change-Id: I5ff8f231208e8d62824d590d3c8e791e8e36affb


[ROCm/clr commit: fe7501a64b]
2021-02-23 13:12:06 -05:00
Tao Sang 06a085377d SWDEV-272088 - Fix runtimeApi/event/hipEventElapsedTime issue
runtimeApi/event/hipEventElapsedTime will report invalid resource error
on cuda due to wrong calling sequence. The fix will arrange the calling
in right sequence.

Change-Id: I3db28a962888566ea135e3cbdefa68d373e2d369


[ROCm/clr commit: b9cf12e920]
2021-02-23 12:36:40 -05:00
Tao Sang ae1db33145 SWDEV-272089 - Shorten memory test time
memory/hipMalloc_MultiThreaded_MultiGpu costs too much time to finish.
    1 GPU: about 1000s, 2 GPUs: about 2200s
But Jenkin build need quick return and ctest will kill test that last
1500+s. So we need shorten the test time.

Change-Id: I3db27a962808566ea135e3cbdefa66d373e2d369


[ROCm/clr commit: 657a515e60]
2021-02-22 18:01:00 -05:00
Tao Sang fc6ff00574 SWDEV-273484 - Fix static lib build failure
Exclude gcc/LaunchKernel from static lib as
it's shared lib test case only

Change-Id: I3db17a962808565ea135e3cbcefa66d373e2d364


[ROCm/clr commit: f055582473]
2021-02-19 17:11:26 -05:00
Vladislav Sytchenko c920024cde SWDEV-255979 - Fix Windows build
Change-Id: I1f1375911d90ded9043a4716e7d09a3ca6a33c23


[ROCm/clr commit: be3c5183b2]
2021-02-19 11:31:52 -05:00
Rahul Garg 96c576eef4 SWDEV-270994 - Bump version to 4.1
Change-Id: Ibe3fcff157f9e0872852dc690ed5db8a8c248049


[ROCm/clr commit: 18bd7b0c13]
2021-02-19 01:59:39 -05:00
agodavar 601d2453be SWDEV-255979 - Added support of __managed__ static variable
Change-Id: I9d5cbbecc8c19ec38a95c94ab4130465ba76c102


[ROCm/clr commit: d5b4762d96]
2021-02-17 13:01:29 -05:00
Satyanvesh Dittakavi 82a333b3ba SWDEV-272543 - Fix hipDeviceGetP2PAttribute when both devices are same
Change-Id: I3db17a962807565ea134e3cbcefa66d373e2d363


[ROCm/clr commit: d721c79f36]
2021-02-17 12:41:59 -05:00
Rupam Chetia 322818430d SWDEV-238517 - [dtest] Adding new test case to validate hipDeviceProp_t arch values
1. Added 1 scenario to validate value of deviceProp.arch.has* with
value of __HIP_ARCH_HAS_* device flag.

SWDEV-238517 - Enhancing hip unit tests

Change-Id: Idb237a76b75180ce77808853a5351f19077a0d33


[ROCm/clr commit: a28c367ed0]
2021-02-17 03:23:42 -05:00
Sarbojit Sarkar e919fb467d SWDEV-272769 - Enabled gcc based hip test
Change-Id: I48bc850df00848bf11de71e3f614273111d31b47


[ROCm/clr commit: ed7f4560cf]
2021-02-16 21:20:00 -05:00
Tao Sang 18ec4c7268 SWDEV-272089 - Fix concurrent memory test failure on CUDA
Change-Id: Ibf35c789d6bd4279bdcedba1a6e057639c258489


[ROCm/clr commit: 5039649dd4]
2021-02-16 10:00:23 -05:00
Jatin Chaudhary 3c08aece90 SWDEV-268531 - Fixing shadow variable warning in vector_types
Change-Id: Ic57e22853529a953582c9194d09133a5aab989aa


[ROCm/clr commit: 3f6bf4c260]
2021-02-16 06:51:37 -05:00
Maneesh Gupta 60f4dcc336 SWDEV-271416 - Keep HIP_DYNAMIC_SHARED macro for compat with existing HIP apps
Change-Id: I536e0c65d6e8696cbc369082350834abd710abca


[ROCm/clr commit: 42ab466904]
2021-02-16 00:09:48 -05:00
Rupam Chetia 22c580bac8 SWDEV-238517 - [dtest] Test for Multiple Target Architecture Code Object
Added a test to generate a code object for multiple target
architectures (including for the current device),
load and execute the kernel.

SWDEV-238517 for enhancing hip unit tests

Change-Id: I509d01124abdc0495cfc770ab5508738f108c91c


[ROCm/clr commit: 05409f05d0]
2021-02-15 06:41:24 -05:00
Rahul Garg e78e7b8abc SWDEV-271182 - Fix HdpMemFlushCntl and HdpMemFlushCntl
Change-Id: I33e5a677c6c6e1d83e6343f8e3690d7b34fe2af5


[ROCm/clr commit: 607795ec9d]
2021-02-12 14:38:56 -05:00
Sarbojit Sarkar 8a48c8a0e0 SWDEV-270630 - Added missing nullcheck
Change-Id: I7caf26c59c4660e26b4159da35731c2ce1600819


[ROCm/clr commit: 3f5fb8e9df]
2021-02-12 13:29:30 -05:00
Sarbojit Sarkar 3c1920f76c SWDEV-271496 - Added missing params check
Change-Id: I17bbf5ed445826e7380df22fa5c6ec1675e208d6


[ROCm/clr commit: b7fd0bc902]
2021-02-12 13:28:12 -05:00
Maneesh Gupta 125de2dbe6 SWDEV-269351 - Revert "Implement assert() using the new fprintf_stderr facility"
This reverts commit 10af608c66.

Reverting since this is dependent on a device libs change which is not yet in mainline.

Change-Id: I094781b868f39995d1eecb41488c1a1a0147b787


[ROCm/clr commit: 18234e1d24]
2021-02-12 03:46:17 -05:00
Tao Sang a74b4c76fd SWDEV-264220 - Support package install of hip-lang
Change-Id: Ibf34c789d6bd4278adcedba1a6e057639c258488


[ROCm/clr commit: be4ed34a08]
2021-02-11 15:41:54 -05:00
Vladislav Sytchenko 69e9b5c0ee SWDEV-252745 - Guard PCH code behind __HIP_ENABLE_PCH macro
Change-Id: I12425b9d44b3d92f9cacceb797a5d09d99e4156b


[ROCm/clr commit: 9f84ea96be]
2021-02-10 09:23:41 -08:00
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
cjatin c2216ca46f SWDEV-269879 - Adding function that recommends optimal thread count
Change-Id: I42eb94a058c1b7f9253182e16ff1c3389a836d61


[ROCm/clr commit: d9496c149b]
2021-02-09 13:34:08 -05:00
cjatin 5fe210011e SWDEV-268531 - Fixing shadow varible warning seen with hip vector usage
Change-Id: I9e20a41e74e473b328cc173f2c27b06352128c88


[ROCm/clr commit: 9a2e762ccb]
2021-02-09 13:33:12 -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
Satyanvesh Dittakavi 7e95883cfc SWDEV-269439 - Fix dtests build failure on HIP CUDA
Change-Id: Ibdba5d364df1bcd3b9e158e22a602dd993044d7a


[ROCm/clr commit: 45e5d6aa67]
2021-02-08 17:09:49 -05:00
Tao Sang a1c44ebfac SWDEV-271406 - Remove unecessary hip_ext.h
tests/src/runtimeApi/module/hipModuleLaunchKernel.cpp doesn't
need hip_ext.h which will fail cuda building. So remove it

Change-Id: Icf5763449ccec839d9efda90ffe3a86fb53bdb85


[ROCm/clr commit: a6176099cf]
2021-02-08 14:33:04 -05:00
Julia Jiang 0e20fbfbec SWDEV-271416 - Remove HIP_DYNAMIC_SHARED macro in hip
Change-Id: I12f39ea8438eb7ce76d8ffb2151b4faa93689048


[ROCm/clr commit: e4fdbfcf5b]
2021-02-08 13:17:46 -05:00
Tao Sang 32e178cbca SWDEV-271363 - Fix undefined HIP_VERSION_GITDATE
HIP_VERSION_GITDATE won't be defined when git isn't
installed. This will lead to building failure of
deviceLib.hipVersion. When git isn't installed, set
HIP_VERSION_GITDATE as 0 by default.

Change-Id: Icf5763449ccec833d9efda90ffe3a86fb53bdb82


[ROCm/clr commit: 1338ebde58]
2021-02-03 21:31:26 -05:00
Aaron En Ye Shi 0d3576fe7f SWDEV-263964 - Fix hipcc --hip-device-lib-path
On Windows, there may be spaces in the directory
location. Therefore, must add quotes when adding
this path with a location in C:/Program Files/.

Change-Id: I63642093092e25a2f6ed73b55a7afd16835ac736


[ROCm/clr commit: e4c1c79b2b]
2021-02-03 19:41:35 +00:00
Satyanvesh Dittakavi 04e2083378 SWDEV-269440 - Fix build error in HIP-CUDA path
Change-Id: Icf5763449ccec333d9efda90ffe3a86fb53bdb81


[ROCm/clr commit: 4d61107615]
2021-02-02 05:40:31 -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
Sarbojit Sarkar 962dff6a61 SWDEV-265469 - added constexpr constructor for dim3
Change-Id: I2e23a403f272d1ff0ade24fec11190d2f3244e5f


[ROCm/clr commit: cee3e1aa37]
2021-01-28 13:23:51 -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
kjayapra-amd 81c1c29bc4 SWDEV-270007 - Fixing the hipMemoryAllocateCoherent test binary path for hipMemoryAllocateCoherentDriver test path.
Change-Id: Iae5363685d10fce32ff80ac5d6bfba460dc2b574


[ROCm/clr commit: d13124d90f]
2021-01-28 09:47:01 -05:00
Satyanvesh Dittakavi 14be9b54a2 SWDEV-269784 - managed memory support for HIP CUDA
Change-Id: I01f9fc64573f402031eceab24395e5cbd93007f9


[ROCm/clr commit: 0074429d05]
2021-01-28 07:51:52 -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 3cd436f7a4 SWDEV-270198 - hip-hcc cleanup remove lpl_ca
Change-Id: I6cae9435397e9070efb4a953c7ba8bd3dcd98c0e


[ROCm/clr commit: 6e7ff3aaae]
2021-01-27 23:40:58 -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