Commit Graph

230 Commits

Author SHA1 Message Date
Anusha GodavarthySurya 3bdedf0cc7 SWDEV-351966 - Dispatch table for hip runtime
Change-Id: Ie4a44fa8cf1ff9c152146070bbbf6b0636d4e325


[ROCm/clr commit: 5e21f0c6bd]
2023-11-22 01:11:19 -05:00
sdashmiz fffa6e3296 SWDEV-389530 - [ABI Break]Match error with cuda
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Id9de54b4fd1be7b6b887a4ebfcc6a3d9a70c7bc9


[ROCm/clr commit: 2d83abaca6]
2023-10-16 07:31:34 -04:00
Ioannis Assiouras dda3517ead SWDEV-425129 - Revert "SWDEV-420822 - [ABI Break] Merge hipFunction_attribute into hipFuncAttribute"
This reverts commit 1502016756.

Change-Id: I02d6e77f0874fc37f22de267435917edd4fdede3


[ROCm/clr commit: bf31109241]
2023-10-03 11:32:19 +01:00
Ioannis Assiouras 1502016756 SWDEV-420822 - [ABI Break] Merge hipFunction_attribute into hipFuncAttribute
Change-Id: I9b9f7979e9b8dd422d9064c17c79a25bf7248d30


[ROCm/clr commit: c469f18e91]
2023-10-01 06:52:12 -04:00
pghafari f088f06be6 SWDEV-369567 - [ABI Break] updating gridY and Z max dimension check
Change-Id: If515fda4938d3c5f455a02b4a65adaad76dc0aed


[ROCm/clr commit: 96f41fad07]
2023-09-22 04:52:27 -04:00
Ioannis Assiouras fb17aa5c41 SWDEV-401489 - [ABI Break] Removed hipModuleLaunchKernelExt
Change-Id: I0b31d9db755f8a89ead203dbd238a93c18b76855


[ROCm/clr commit: fe2d747bcc]
2023-09-21 23:50:16 -04:00
Ioannis Assiouras a0ee7e2784 SWDEV-419996 - Allow both kernelParams and extra arguments to be set to null
When kernel function expects no parameters no error should be returned
if both kernelParams and extra arguments are set to null.

Change-Id: I5941bcc400b6fb380e623bdae0233ae3e4f73815


[ROCm/clr commit: 315082e554]
2023-09-07 12:57:46 -04:00
Maneesh Gupta e45838a25c Revert "SWDEV-389530 - [ABI Break]Match error with cuda"
This reverts commit 2b78a9c443.

Change-Id: I07aac68c76b3bc42b595330fdbbb04646b35a814


[ROCm/clr commit: 76a4bd1d7f]
2023-07-31 21:41:54 -04:00
sdashmiz 2b78a9c443 SWDEV-389530 - [ABI Break]Match error with cuda
- match error for invalid params

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I2faf1191f665d8bd06d6ba315f440e87b1a5b8ab


[ROCm/clr commit: c7d8557eee]
2023-07-26 20:32:41 -04:00
pghafari b01ca8b9c7 SWDEV-406821 - use int32 for grid y,z till rocm 6
Change-Id: If9eee4dd5553cc81e283cb2211cc69884808d5c1


[ROCm/clr commit: 9e08ecdd16]
2023-06-22 09:42:00 -04:00
pghafari 9eda493469 SWDEV-399734, SWDEV-399733 - update maxGridDim for y and z
Change-Id: Id5b1dd2491798dd20a0672362f445ab4de164f6d


[ROCm/clr commit: fb82b292c2]
2023-05-17 19:03:04 -04:00
pghafari 505bce23be SWDEV-369567 - dimension check update
Change-Id: I31deb5070d4852db7dd6d37f9a514965f387698e


[ROCm/clr commit: 31b362bf6e]
2023-05-02 08:04:04 -04:00
German Andryeyev a6f2ecd703 SWDEV-231145 - Add a validation for uniform launch
Change-Id: I68d61690c50060d9dcca117b248dddf69204a23f


[ROCm/clr commit: e82eecf33e]
2023-04-18 12:56:09 -04:00
German Andryeyev 237480711a SWDEV-382359 - Workaround a non-uniform launch in MIOpen
Change-Id: I0abff25fb20143225739e771c4d3bae5c2a054b9


[ROCm/clr commit: 73698479a9]
2023-04-18 11:36:10 -04:00
Ioannis Assiouras bf7e31c1ff SWDEV-388278 - Fix return HIP_RETURN(x)
Change-Id: I940ee3660a2427eade8690a9318966fb04a1fbe8


[ROCm/clr commit: e6520ddf8a]
2023-03-13 13:32:55 +00:00
Saleel Kudchadker 9fdbbe53dc SWDEV-364604 - Add support for hipEventDisableSystemFence
Change-Id: I1a6451c873fb22729ac61e4e80f8531251e990f0


[ROCm/clr commit: 7fc5ae2226]
2023-02-21 23:11:40 -05:00
Ioannis Assiouras 2633e62801 SWDEV-381402 - Derive hip::Stream from amd::HostQueue
Change-Id: I6c1aca5eb350c32d974ae4ffcc725705355956d8


[ROCm/clr commit: e3633dc8f4]
2023-02-21 18:12:03 -05:00
victzhan 46652f12a2 SWDEV-376995 - Fixed misplaced checking
Change-Id: Ia3bddabfa7fc76066541fb81723136ae6cffb0a4


[ROCm/clr commit: d6a08403d8]
2023-02-17 13:34:51 -05:00
victzhan 94f9990e27 SWDEV-376995 - Added if statement so that when AQL dispatch failed it returns corresponding hip error instead of hipSuccess
Change-Id: I0724fbcf0833c5dd8b2e4d6e443b3e226046dddf


[ROCm/clr commit: 4e324a9c63]
2023-02-14 14:30:50 -05:00
Jaydeep Patel 5981bd5c22 SWDEV-379395 - Use getQueue as it handles null stream and flags can be combination.
Change-Id: If37854a9fc0fc57acb30e652953a7f283831cad8


[ROCm/clr commit: 01c3299425]
2023-02-01 12:03:42 -05:00
pghafari 829bbe4933 SWDEV-369570 - MaxSharedMemoryPerBloc check
Change-Id: I74d216a5d9316758bb611eb241ba85222194ce8b


[ROCm/clr commit: 2e60edbe0e]
2023-01-17 07:52:15 -05:00
Ioannis Assiouras 1974ef22cf SWDEV-374403 - Added input sanity checks for hipLaunchCooperativeKernelMultiDevice and hipExtLaunchMultiKernelMultiDevice
Change-Id: Iebef5ae68439d87549fdf9559de51c6c79c64392


[ROCm/clr commit: 0d2e0d1621]
2023-01-13 19:48:42 -05:00
Rakesh Roy 87db95fad7 SWDEV-368881 - Implement hipModuleLaunchCooperative* APIs
- Add implementation for hipModuleLaunchCooperativeKernel, hipModuleLaunchCooperativeKernelMultiDevice APIs

Change-Id: I2a80264e458549211c34b413397a08b57d021147


[ROCm/clr commit: b321e2afc6]
2023-01-10 13:50:20 -05:00
pghafari 6bae9dde0a SWDEV-369580 - hipModuleGetTexRef matching cuda
Change-Id: I3f071fe0b289c0ba8316c691f066f47d12b156b5


[ROCm/clr commit: 2c906460cb]
2022-12-27 13:58:26 -05:00
Anusha GodavarthySurya b534cb32d2 SWDEV-373147 - Return error when getDeviceKernel returns nullptr
Change-Id: Ie9fcaa2bff87cb8ef363dc7e8362b74b8725b3b6


[ROCm/clr commit: 707ca92a80]
2022-12-21 22:14:10 -05:00
Ioannis Assiouras be16c31b60 SWDEV-374402 - Added check for invalid events in hipExtLaunchKernel
Change-Id: I8dfd69aa1ef38971a72b98c723d2099347a66d11


[ROCm/clr commit: b83271b4ca]
2022-12-21 12:37:12 -05:00
Ioannis Assiouras 1ddb9a2ddf SWDEV-374402 - Added input stream check for hipExtLaunchKernel
Change-Id: I42915c3b9b10b4a4a5b3ae74b6a2dccc8fddbf7f


[ROCm/clr commit: f4f377bcaa]
2022-12-20 14:29:58 -05:00
Ioannis Assiouras c4d2a2c557 SWDEV-374400, SWDEV-374404 - Change error message in hipFuncGetAttribute(s) to match nvidia.
Change-Id: I95b69a49ced24115f0aebc288ea067a49b770aca


[ROCm/clr commit: 97c5f772c6]
2022-12-20 12:49:17 -05:00
pghafari 23b51242fd SWDEV-369575, SWDEV-369568, SWDEV-369574 - matching
matching cuda return value

hipModuleLaunchKernel and hipExtModuleLaunchKernel matching with cuda in
negative cases

Change-Id: I636070924c81116dccbfa74f693061c60530de45


[ROCm/clr commit: 3b143cf3a2]
2022-12-20 12:24:23 -05:00
pghafari 7190c59c65 SWDEV-369576, SWDEV-369578, SWDEV-369577, SWDEV-369579, SWDEV-369563 - matching cuda return value
SWDEV-369576, SWDEV-369578, SWDEV-369579, SWDEV-369563 - matching cuda return value

Change-Id: I21b598e959571979307238c485492eb7fe2388cc


[ROCm/clr commit: c0f779fdf1]
2022-12-16 01:12:49 -05:00
pghafari c4fc6ea3ab SWDEV-369566, SWDEV-369565, SWDEV-369564 - match with cuda return
Change-Id: I308f5344a64e5a06aa89685de9348f6722c196da


[ROCm/clr commit: 698f52acd8]
2022-12-12 09:53:18 -05:00
Ioannis Assiouras 1ac4a6e0c3 SWDEV-369572 - Check for valid stream before capture
Change-Id: I712ce136327ad459a048d84d1caeec506ed1cc39


[ROCm/clr commit: 6847427dd4]
2022-12-05 22:09:07 +00:00
Rakesh Roy 9ec5dee45c SWDEV-368881 - Revert enable hipLaunchCooperativeKernel for hipRTC compiled function
This reverts commit f870f04dd9.

Reason for revert: Doesn't match with CUDA behavior

Change-Id: I413f3d241f864c1e7c21681c5fff8f216ef54306


[ROCm/clr commit: 4f5d180ca7]
2022-11-30 03:58:29 -05:00
Rakesh Roy f870f04dd9 SWDEV-368881 - Enable hipLaunchCooperativeKernel for hipRTC compiled function
- Add helper function to validate whether a dynamic function is present or not
- If getStatFunc fails, then check whether the function passed is a valid dynamic function

Change-Id: I4141172f42dce7ff689709560c483e602b5dad4b


[ROCm/clr commit: b4d8586a11]
2022-11-29 00:35:43 -05:00
Satyanvesh Dittakavi d73204ebc4 SWDEV-363369 - Elapsed time needs only stop event timings if both start and stop events are recorded
Change-Id: I91c9ce79aacf1014ae77600d1250cfccd9dd6039


[ROCm/clr commit: 30d6497953]
2022-11-09 00:31:06 -05:00
Anusha GodavarthySurya 3d97da8522 SWDEV-356314 - Init managed vars on device kernel is launched
Change-Id: I9c30b7d0e2a490dbb2bd9c02dccaae17d76874ef


[ROCm/clr commit: 0a3e89c0cb]
2022-10-11 00:18:30 -04:00
Saleel Kudchadker ad9557a00b SWDEV-301667 - Pass all params to API Init
- Correct return for ihipLaunchKernel

Change-Id: I66e81fa635473e6e728936e4cfba9f1bc7f018ad


[ROCm/clr commit: df278887fe]
2022-09-15 22:20:02 -07:00
Anusha Godavarthy Surya ed2f9051fa SWDEV-354717 - Add support for hipExtLaunchKernel as part of stream capture
Change-Id: I22708923f454a0f4456ff99d25559daffe08c208


[ROCm/clr commit: 2b322a9087]
2022-09-01 05:02:20 +00:00
Anusha Godavarthy Surya 67706897e0 SWDEV-352951 - Add capture support for hipModuleLaunchKernel
Change-Id: Iced0846c9f753ecbb87e3f7aec2bfd72137d8c00


[ROCm/clr commit: c72942964d]
2022-08-31 22:15:02 -04:00
Anusha Godavarthy Surya 0e1f53bf87 SWDEV-350474 - Added hipExtModuleLaunchKernel API support as part of stream capture
Change-Id: I90a880ae0d3a85a0cc8380d2cb21e4759ea8151b


[ROCm/clr commit: 0d6e8e378e]
2022-08-24 11:20:22 -04:00
Ajay 7e7576a849 SWDEV-348678 - hipManagedVar to initialize on all devices
Change-Id: Id714b56e89e4930ee067f3a7472a0029057d2711


[ROCm/clr commit: b380a95597]
2022-08-10 16:54:19 +00:00
Sourabh Betigeri 5d26e66ed7 SWDEV-318237 SWDEV-330173 - Fixes kernel parameter corruption when multiple nodes of the same kernelNode exist
Change-Id: I6437593be46b7b5afc3d77cdd887ad4139978ad3


[ROCm/clr commit: 5549c8cd1b]
2022-06-14 18:06:21 -04:00
sdashmiz 9be23b6b1f SWDEV-334857 - hipModuleGetTexRef compatibilty issue
- make the defualt texref value compatible with cuda

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I2ae980e435f3b0fc15b237741e3f2b97c4257e12


[ROCm/clr commit: 8d93ff521f]
2022-06-10 15:13:29 -04:00
kjayapra-amd 9bc0d08679 SWDEV-290384 - Add Linker API support in hiprtc
Change-Id: I4621a033a22e4da0201c3804e2b357470a681ab0


[ROCm/clr commit: 84f94fd134]
2022-05-24 09:16:14 -04:00
Sarbojit Sarkar e22f2e1714 SWDEV-323441 - support for default stream per thread
Change-Id: I0032da0357f5cffbf5e4ec4a02435d2a128a262b


[ROCm/clr commit: fc1f02bbed]
2022-04-18 23:19:55 -04:00
Sarbojit Sarkar bb53dfb244 SWDEV-325799 - Fix segfault with hipStreamPerThread
Change-Id: Ie6d4bf55131d65590234796443373b968a21b3d2


[ROCm/clr commit: 53b4888113]
2022-03-07 06:19:05 -05:00
Saleel Kudchadker 8139cc4683 SWDEV-301667 - Fix build warnings
Change-Id: Ice23b3d1a19a7958ca5c3caff34db2934b361a98


[ROCm/clr commit: 086aee0fcb]
2022-03-02 20:49:18 -05:00
Satyanvesh Dittakavi 51f8fc06e1 SWDEV-306940 - Fix hipamd errors/warnings found by CppCheck
Change-Id: Ia93d4f5262ea4269d8031edbfd27033b887e5300


[ROCm/clr commit: 6e562f4d83]
2022-02-05 08:42:47 -05:00
Sarbojit Sarkar 8f0c0822ad SWDEV-313905 - Fix segfault
Change-Id: I7b7bbe80a169014b5d4a8de134351b9f8bf11735


[ROCm/clr commit: 017603703b]
2022-01-11 23:40:25 -05:00
Tao Sang 68c75c9fb7 SWDEV-303204 - Disable texture/image Apis on some devices
If the target device doesn't support image,
compiler will send out unavailable error if device texture apis
are called; and host texture apis will return hipErrorNotSupported.
Remove useless include/hip/amd_detail/texture_functions.h.
Add hipDeviceAttributeImageSupport attribute to check image
support in runtime.
Add __HIP_NO_IMAGE_SUPPORT(=1) macro in device code to indicate
texture apis not supported.
Change-Id: Ia891493e681a61980a2444859a90e046a9ebea39


[ROCm/clr commit: 5acc8b5102]
2021-12-04 08:14:08 -05:00