7239 Commits

Author SHA1 Message Date
Kandula, Venkateshwar reddy 10d0ae9638 [CLR ABI] step runtime api version hip memset node params (#373)
* increase hip api table version for HIP_MEMSET_NODE_PARAMS removed.

* update version in static_assert.

---------

Co-authored-by: Venkateshwar Reddy Kandula <vkandula@amd.com>

[ROCm/clr commit: ad44dd527f]
2025-05-22 15:09:31 +05:30
Dittakavi, Satyanvesh e0a9266e50 SWDEV-433031 - Match the signature of HIPRTC APIs with NVRTC (#378)
Change-Id: I5eb175b15a65a9f1c2db3ae30da6803179520dbe

[ROCm/clr commit: e5f7519e64]
2025-05-22 13:30:33 +05:30
Dittakavi, Satyanvesh 26a927621b SWDEV-513341 - Remove datatypes from HIPRTC (#377)
Defining int64_t, uint64_t, int32_t, uint32_t in HIPRTC
seem to result in conflicts with some apps as they use
their own definitions for these types. NVRTC also doesn't
define these. Hence remove them and replace their usage
with hip internal datatypes such as __hip_int64_t

Change-Id: Id314730bbd61c05f126f915c546052f956550a3f

[ROCm/clr commit: 946ea72c94]
2025-05-22 13:28:31 +05:30
Dittakavi, Satyanvesh 4f6024c376 SWDEV-482125 - HIPRTC implementation of standard headers moved from std to __hip_internal namespace (#376)
Change-Id: Ia359ed45e0916ad397401113a69a6b26a590d807

[ROCm/clr commit: b27e2abc41]
2025-05-22 13:27:19 +05:30
Dittakavi, Satyanvesh 36539a2ca1 SWDEV-512756 - SWDEV-510954 - Add appropriate checks during active stream capture (#375)
- hipStreamAddCallback is not permitted during stream capture for all modes
- hipModuleUnload is permitted only for relaxed mode during stream capture

Change-Id: I79ca5d2f6b61bd2e169fee7c13da4cd46e472a10

[ROCm/clr commit: 2c173c6da4]
2025-05-22 13:24:49 +05:30
Andryeyev, German fc2f5aaf22 SWDEV-533074 - Expose hipDeviceAttributeNumberOfXccs attribute (#336)
[ROCm/clr commit: 5cc172c99c]
2025-05-21 22:35:42 +05:30
Dittakavi, Satyanvesh 1cc35da9be SWDEV-438790 - Remove DEBUG_HIP_7_PREVIEW env var keeping the hipGetLastError changes by default (#337)
[ROCm/clr commit: 664bf232dd]
2025-05-21 22:12:45 +05:30
Brzak, Branislav 834d770ca4 SWDEV-508964 - Match hip launch kernel retuns with cuda (#357)
[ROCm/clr commit: 88f15877f6]
2025-05-21 21:59:11 +05:30
Belton-Schure, Aidan 720660d552 SWDEV-527851 SWDEV-527890 SWDEV-529456 - Make HIP vector simple struct (#356)
* Make HIP vector simple struct

Change-Id: I8442c2cc9af26b2a3c7d6719e3348df1593e83b3

* Update make_vector_type

Change-Id: Ic5060994a08baa4262c2a4b09fcbe6bc74276720

[ROCm/clr commit: 3cd3b3ffc5]
2025-05-21 21:30:55 +05:30
Dittakavi, Satyanvesh 39b9a46025 SWDEV-418904 - Remove hiprtc symbols from hip library (#370)
[ROCm/clr commit: e9dbd7c99d]
2025-05-21 21:22:47 +05:30
Assiouras, Ioannis 6467351f4c SWDEV-508962 - [6.4 Preview] Update hipPointerGetAttributes to match CUDA > 11.0 behavior (#120) (#363)
[ROCm/clr commit: 0b64eec921]
2025-05-21 21:18:05 +05:30
Assiouras, Ioannis 3ea732b38a SWDEV-508965 - [6.4 Preview] Remove HIP_MEMSET_NODE_PARAMS struct (#121) (#364)
[ROCm/clr commit: 968f5599a8]
2025-05-21 21:16:42 +05:30
Andryeyev, German 22da169b86 SWDEV-532868 - Disable implicit wait in hipFree for async allocations (#323)
* SWDEV-532868 - Disable implicit wait in hipFree for async allocations

* Fix compilation error

[ROCm/clr commit: 58df22546b]
2025-05-21 21:14:38 +05:30
Brzak, Branislav 16aefe62f6 SWDEV-508979 - Match hipModuleLoad negative return with Cuda (#326)
[ROCm/clr commit: 7a357800dd]
2025-05-21 21:09:07 +05:30
Brzak, Branislav 10d97b4b3c SWDEV-508970 - Match hipBindTextureToArray negative return with Cuda (#325)
[ROCm/clr commit: a46ed60e2e]
2025-05-21 20:57:09 +05:30
Sang, Tao 12b43826dd SWDEV-519346 - Fix __clock64() compiling issue in SPIRV (#207)
[ROCm/clr commit: 78f3caba0b]
2025-05-20 16:57:17 -04:00
Jayaprakash, Karthik a17e22a78c SWDEV-529929 - hipMemGetHandleForAddressRange implementation. (#245)
[ROCm/clr commit: 12131de4a9]
2025-05-20 15:56:04 -04:00
Jayaprakash, Karthik 4ea2d9a5ee SWDEV-531711 - Report correct error code based on device failure. (#286)
[ROCm/clr commit: f5b8db33f1]
2025-05-17 06:33:13 -04:00
Belton-Schure, Aidan c04355bbe3 Add __syncwarp operation (#160)
Change-Id: I6a3783beafdbb9f11a3b37333f4ff3f5be27ea54

[ROCm/clr commit: c50610b44d]
2025-05-15 14:20:13 +05:30
Patel, Jaydeepkumar 7b6e59cbea SWDEV-530803 - User current device id while cloning graph node. (#313)
[ROCm/clr commit: 32eb6a5d89]
2025-05-15 09:06:15 +05:30
Xie, Pengda d0b5bee680 SWDEV-527781 - Remove Stream Validation in HIP APIs
[ROCm/clr commit: 0457b634f8]
2025-05-13 13:45:27 -07:00
Assiouras, Ioannis 71f19d7017 SWDEV-529449 - Bug fix when retrieving a memobj from the IPC mem handle
[ROCm/clr commit: f7482ef0a6]
2025-05-13 19:18:22 +01:00
Hernandez, Gerardo f6e2ce709e SWDEV-491314 - Re-enable cross-lane sync builtins (#94)
* Enables warp sync builtins by default

* Removes HIP_ENABLE_WARP_SYNC_BUILTINS; that macro will no longer have an effect. Instead, we will now be able to disable the builtins with the macro: HIP_DISABLE_WARP_SYNC_BUILTINS

[ROCm/clr commit: 5606debd8e]
2025-05-13 16:35:58 +01:00
Brzak, Branislav cc6bfe71fc SWDEV-528683 - Hardcode valid wavefront compile time options (#306)
[ROCm/clr commit: f9199ac205]
2025-05-12 19:29:39 +02:00
Jayaprakash, Karthik 5dff283f4e SWDEV-526855 - Modify the SIMDPerCU calculation for gfx1250/1. (#275)
[ROCm/clr commit: acb1f7e8d5]
2025-05-12 11:09:03 -04:00
Arandjelovic, Marko 3d862af4df SWDEV-512344 - Unmap all subbuffers (#214)
[ROCm/clr commit: c5ced8c3a2]
2025-05-12 16:56:10 +02:00
Arandjelovic, Marko 558a26cf98 SWDEV-511204 - Mapped virtual memory should use device instead of host context (#213)
Since the sub-buffer(virtual memory that is mapped to device memory) is associated with device memory, it should utilize the device context instead of the host context. The original implementation caused hipMemcpyPeer to not take the P2P path, as the memory object was treated as host memory.

[ROCm/clr commit: a7492c516d]
2025-05-12 16:55:25 +02:00
Huang, AnZhong 3decd4f975 SWDEV-527299 - Support HIP_POINTER_ATTRIBUTE_CONTEXT (#180)
* SWDEV-527299 - Support HIP_POINTER_ATTRIBUTE_CONTEXT

As HIP enables UVA by default, it seems we can simply expose the context to support this feature.


[ROCm/clr commit: b434fbe2bd]
2025-05-09 17:34:16 +08:00
Chaudhary, Jatin Jaikishan a8630e866d SWDEV-525933 - add constexpr operators for fp16/bf16 (#199)
[ROCm/clr commit: 2f73e1385b]
2025-05-09 09:53:58 +01:00
Jayaprakash, Karthik cde2a250ec SWDEV-493805 - Cleaning up launch parameters arguments. (#241)
[ROCm/clr commit: fa55557f46]
2025-05-06 15:06:13 -04:00
Dittakavi, Satyanvesh 086a1c289a SWDEV-529831 - Return error if the program is empty (#257)
[ROCm/clr commit: 607f8f26fd]
2025-05-06 15:12:12 +05:30
Chaudhary, Jatin Jaikishan b5f67d4804 SWDEV-529854 - __hmax/__hmin should handle nan's (#246)
[ROCm/clr commit: a71c6eb1a0]
2025-05-06 09:42:15 +01:00
Chaudhary, Jatin Jaikishan a12739ecd9 SWDEV-529927 - add missing operations for fp16/bf16 (#238)
[ROCm/clr commit: b1ebf33850]
2025-05-06 09:41:21 +01:00
Guan, Zichuan ee91a1e94a Disable HIP_PLATFORM auto-detect if already defined (#254)
Co-authored-by: Stella Laurenzo <stellaraccident@gmail.com>

[ROCm/clr commit: 3775298655]
2025-05-05 15:37:53 -04:00
Arsenault, Matthew 13d8f9adae SWDEV-1 - Stop using ocml rounding functions (#228)
Directly use the builtins. Use the elementwise versions since there's
no implied errno, regardless of -f[no]-math-errno.

I didn't change the cases unnecessarily casting. The bfloat and vector
cases should work directly.

[ROCm/clr commit: 1db9a7d48b]
2025-05-05 19:35:12 +02:00
Searles, Mark e480220c6a Fix typos in warning msgs (#231)
[ROCm/clr commit: cd9bc61559]
2025-05-02 14:31:42 -07:00
Chaudhary, Jatin Jaikishan f619372ae6 SWDEV-514560 - add fp6 header implementation (#54)
Co-authored-by: rahul manocha <rmanocha_amdeng>

[ROCm/clr commit: 12febe6782]
2025-05-01 15:17:38 +01:00
Godavarthy Surya, Anusha e4a499f22e SWDEV-522841 - Graph nodes must be created/launched on device where they are captured/created (#108)
[ROCm/clr commit: 2538d7f02b]
2025-04-29 22:20:39 +05:30
Jiang, Julia 6ab34e0924 SWDEV-522634 - Fix device properties in hipInfo (#203)
[ROCm/clr commit: eb62fe9f62]
2025-04-29 11:29:47 -04:00
Sang, Tao 68deb3d10a SWDEV-520352 - Remove HostThread and legacy monitor (#230)
* SWDEV-520352 - Remove HostThread and legacy monitor

Remove HostThread, semaphore and  legacy monitor.
Make original logics of thread and command queue stricker.
Add more comments to make logics clearer.
Some other minor improvement.

Also part of SWDEV-458943.

[ROCm/clr commit: 96cadbc9e9]
2025-04-29 09:55:24 -04:00
Jayaprakash, Karthik 49a527c826 SWDEV-506467 - Skip Abort in case of crash from the device. (#60)
Change-Id: I964b2f2647d068202e9c38fcddb1337da754df8d

[ROCm/clr commit: b2388dfb88]
2025-04-29 11:19:02 +05:30
Betigeri, Sourabh ae0640131e SWDEV-528351 - Removes unused code and asserts to improve coverage (#219)
[ROCm/clr commit: 9cf3f1e461]
2025-04-28 14:40:35 -07:00
Godavarthy Surya, Anusha ff69bcc903 SWDEV-469422 - Avoid using of hipStream_t in internal methods (#69)
Change-Id: Ifd5362f371c846a88241927383cb95cf046548ef

[ROCm/clr commit: fb92683d86]
2025-04-28 15:09:11 +05:30
Godavarthy Surya, Anusha 0eb2e5e8f2 SWDEV-469422 - hipGraphNodeDOTAttribute change std::string members to const char* (#70)
Compiler creates global variables for every unique string

Change-Id: I4cf8dd3e763d16740096e345da67a7ef72f61515

[ROCm/clr commit: bbcb1f9c70]
2025-04-28 14:57:36 +05:30
Assiouras, Ioannis 875468bbfb SWDEV-526188 - Fix race condition in StatCO::getStatFunc()
Make sure that a newly created FatBinaryInfo is assigned to modules only after extractFatBinary has been called for the object.

[ROCm/clr commit: 1099e0a131]
2025-04-27 21:14:01 +01:00
Sang, Tao a9068182f4 SWDEV-493275 - Support scratch limit (#20)
Support programmatic query and change of scratch limit on
AMD devices.

Change-Id: Id5da355a77366f97868e462847f3916e87fd2af6

[ROCm/clr commit: 1113eff3f9]
2025-04-24 17:15:25 -04:00
Godavarthy Surya, Anusha d4e36d0900 SWDEV-469423 - hipStreamEndCapture graph* can be nullptr (#170)
[ROCm/clr commit: e5ce544c45]
2025-04-24 13:57:09 +05:30
Sang, Tao 60110b6c01 SWDEV-518831 - fix streams' sync issue in mthreads (#123)
* SWDEV-518831 - fix streams' sync issue in mthreads

1. Fix sync issue of null stream and non-null streams in
multithreads.
2. Remove assert(GetSubmissionBatch() == nullptr) as it
is invalid in multithreads.
3. Update getActiveQueues() to deal with the state of 
being terminated.

[ROCm/clr commit: 27aad09bd4]
2025-04-23 15:08:07 -04:00
GunaShekar, Ajay 34d3f7022b SWDEV-523281 - CHANGELOG.md and negative test return values : hipLaunchKernelEx, hipLaunchKernelExC, hipDrvLaunchKernelEx (#155)
[ROCm/clr commit: 64d6f5714a]
2025-04-22 21:47:37 +05:30
Hernandez, Gerardo ba5a9a5395 SWDEV-420237 - Fix reduce sync operations when masks are divergent (#181)
Do not use __ockl_activelane_u32() to calculate the index of the lane within the mask, as that would not work with divergent masks that have other bits on before the associated lane.

[ROCm/clr commit: 1a8d766836]
2025-04-22 19:47:58 +05:30