kjayapra-amd
98c87921a3
SWDEV-440106 - Mapping hipDestroyExternalMemory in HIP dispatch table.
...
Change-Id: I5e6e21f929c95be524ace7fd8735a05994c896e8
2024-01-09 15:02:03 -05:00
sdashmiz
087767d9ac
SWDEV-403382 - Add missing graph APIs
...
- add external semaphor signal and wait node
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com >
Change-Id: If205d48bc4fb60ce2966ca6ed0419e7700755bdd
2024-01-09 14:19:50 -05:00
Rahul Garg
956cc463bf
SWDEV-439426 - Update HIP patch version reported through CMake
...
Change-Id: I2b32edfa18d85d49a4b96ff80ea8f60e1df5d517
2024-01-08 03:43:01 -05:00
Satyanvesh Dittakavi
c398c75512
SWDEV-432977 - Set the correct device id in hipIpcOpenMemHandle
...
hipIpcOpenMemHandle can be used to open memory handle and fetch
a device pointer on a different device than the actual device
where the memory was allocated. The device Id must be set to
the current device in such cases and not the original device.
Change-Id: Ie1c7eada928d02124a41125876876f96015552e5
2024-01-05 00:28:59 -05:00
Ioannis Assiouras
411bccff5b
SWDEV-438299 - Simplified the code in ExtractFatBinaryUsingCOMGR
...
Change-Id: Ic15f2b71ae87ab3ca36ed5af2c816d57d09b3e70
2024-01-04 04:01:58 -05:00
Ioannis Assiouras
af86c1b8a2
SWDEV-438531 - Fixed hipGraphExecMemcpyNodeSetParams for H2H kind
...
The function erroneously returns hipErrorInvalidValue when kind
is set to hipMemcpyHostToHost
Change-Id: I6810b9f04f3218e517fd2f96410d1375e6ac6ff0
2024-01-04 03:47:39 -05:00
German Andryeyev
a1fffac595
SWDEV-311271 - Switch to sorted map for pool allocations
...
Sorted map can work much faster for many allocations and a low reuse frequency
Change-Id: I6dba29ebc8bfacdf34307149b6a2b194890b2932
2024-01-03 17:36:05 -05:00
shadi
a071c4d2fc
SWDEV-388256 - correct API name
...
Signed-off-by: shadi <shadi.dashmiz@amd.com >
Change-Id: Icbf79613268fe0737a8033abfbcc9f33d785bc12
2024-01-03 15:06:41 -05:00
Jatin Chaudhary
49369f0851
SWDEV-436233 - fix the cumode in hiprtc
...
cumode should be active when wgp mode is off
Change-Id: I12f2e55d942ddeb0fb4470de7abc3caff1f430f7
2024-01-02 17:43:32 -05:00
Satyanvesh Dittakavi
dc8f66b86f
SWDEV-379212 - Handle template kernels with hiprtc lowered names
...
Change-Id: Ib8e6493a1f342f92a35031d5ee39b2e22132b56a
2024-01-02 03:28:28 -05:00
Anusha GodavarthySurya
9b6cf0f74b
SWDEV-351966 - Rename hip::__hipExtModuleLaunchKernel to hip::hipExtModuleLaunchKernel
...
Change-Id: Ie922760f37bf0c9abf2653d36e32705a12ab5a90
2023-12-20 22:50:01 -05:00
Ioannis Assiouras
5158ec1c00
SWDEV-438299 - Fixed out of bounds memory access in ExtractFatBinaryUsingCOMGR
...
Change-Id: Ib1c6a38da0b81b78d250d7fb88d1194864a0251d
2023-12-20 04:17:40 -05:00
German Andryeyev
3fa4e31180
SWDEV-311271 - Release freed memory from MemPools
...
Runtime has to release extra memory, held by the pools,
in synchronization points for event, stream or device.
Change-Id: Id533a5e1d137812aa72bdfe101b4b333c6a43d66
2023-12-19 13:47:04 -05:00
Rahul Garg
92aa9d0fba
SWDEV-388256 - Add support of hipExtGetLastError
...
Change-Id: Ie119d5ea611019996b8a80f7b820ca6a160496a6
2023-12-18 22:03:22 -05:00
Ioannis Assiouras
d3bfb55d7a
SWDEV-437817 - Fix hipMemCpy2D case that erroneously fails with invalid argument error
...
When an offset is applied to the source or destination pointers plus the kind is set to
hipMemcpyDefault and the source or destination is allocated with hipMallocManaged
hipMemCpy2D erroneously fails with hipErrorInvalidValue.
Change-Id: I0db4c17514f743652d8f9a2691da6601a2abb2a1
2023-12-18 07:31:56 -05:00
Anusha GodavarthySurya
4a7291ded8
SWDEV-436405 - Move hipChooseDevice out of hip namespace
...
Change-Id: I47a3cc5e5409f418b282d1a2e250128c769f4778
2023-12-18 04:37:39 -05:00
taosang2
d6d235a111
SWDEV-435296 - Fix sporatic segment fault
...
Fix sporatic segment fault in texture test
via retaining image in texture object which
references the image.
The image will be released when the texture
object is destroyed.
Change-Id: Ic3fefa2d5dda6afebd1acd4d41ad310b138af6dd
2023-12-15 21:06:20 -05:00
Ioannis Assiouras
fe739047e5
SWDEV-433745 - Added demangled symbol for hipExtModuleLaunchKernel
...
Change-Id: Ib8051fcbdf0c8c99e97c845b777d6562220701a0
2023-12-15 16:59:40 -05:00
kjayapra-amd
f9fd5f4049
SWDEV-413997 - Alignment should be a multiple of device granularity.
...
Change-Id: Ie9c636385bbe3139c2dc24c16f31c9d5e2d56b95
2023-12-15 13:27:23 -05:00
Anusha GodavarthySurya
3e72b8d1e1
SWDEV-436405 - Add hipGetDevicePropertiesR0000 and hipChooseDeviceR0000 to hip dispatch table
...
Change-Id: I5b373ac030502eb88477d20a1d216bc48369b51d
2023-12-15 06:26:52 -05:00
Jaydeep Patel
9551d48e7f
SWDEV-411343 - Import VK buffer memory exported by name.
...
Change-Id: Idc7c840fcd6bf758ecc29ffd6558d24e5bd0a25b
2023-12-14 22:16:11 -05:00
jiabaxie
f80985f6a1
SWDEV-435477 - correct MACH IDs and add strx1/halo and krackan support for hip
...
Change-Id: I5b7ed449f4755d69f10677b90ab2b0ceae050b3d
2023-12-14 13:07:03 -05:00
kjayapra-amd
ec010e4d2d
SWDEV-413997 - Fixing MGPU cases on PAL side by passing Global Context to virtual alloc.
...
Change-Id: I6614058d1456d199d710b12acd95160a79aa48c8
2023-12-14 11:34:32 -05:00
German
68d442f29a
SWDEV-430809 - Replace hipErrorSharedObjectInitFailed vs hipErrorNoBinaryForGpu
...
hipErrorSharedObjectInitFailed should be used for interop objects.
Change-Id: Id3bcffaac3b511021f2fd57e9b156a897b646db0
2023-12-14 10:35:10 -05:00
Sameer Sahasrabuddhe
7137a296dd
SWDEV-437090: move the __hip_assert macro to a common place
...
It cannot be moved to amd_device_functions.h because that causes circular
dependences when trying to use the macro in other files. So we create a new
header and move all assert/abort macros to that common header.
As a side-effect, also fix the macro to correctly expand the entire condition
argument, and also consume the trailing semicolon.
Change-Id: I43688c8e61183503a3a1a039b91321a3779152af
2023-12-14 09:03:14 -05:00
Anusha GodavarthySurya
2bb2446d8f
SWDEV-422207 - Fix graph catch tests with graph optimizations(DEBUG_CLR_GRAPH_PACKET_CAPTURE enabled)
...
Change-Id: I16297e0ddde286bf1798c90f2bf846e69819010d
2023-12-14 01:27:08 -05:00
sdashmiz
b8e820f835
SWDEV-421021 - Add hipDrvmemsetnode for graph
...
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com >
Change-Id: I0240a162a16e61549d46b5d086c831404550e833
2023-12-13 09:30:36 -05:00
Jatin Chaudhary
d5e596c975
SWDEV-434226 - populate correct output in mempool supported handle type query
...
Change-Id: Iabbf9c0b54d9978671e3492f13660917499a03fa
2023-12-13 04:40:41 -05:00
Satyanvesh Dittakavi
b2102fe939
SWDEV-434846 - Correct the vgprs per simd for MI300
...
Change-Id: Id4862da7611f64392bfc1538fb644801ec0a9e7f
2023-12-13 03:06:21 -05:00
Jatin Chaudhary
14cbd8d24c
SWDEV-431315 - mark stack as non executable in hiprtc generated header
...
Reference: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
Change-Id: I66860eb3787b8c835c52168dcf7a084982f0d7e6
2023-12-12 18:56:51 -05:00
Jatin Chaudhary
db909b2a1e
SWDEV-430619 - copy uuid via memcpy
...
If uuid is copied via strncpy it will stop at first null character. We
need to copy all 16 bytes which might have a null on windows.
Change-Id: I8667919cb251133eec3333a23768c356879727e8
2023-12-12 04:09:05 -05:00
Todd tiantuo Li
b825decd42
SWDEV-422544 - Use hipDeviceAttributeUnifiedAddressing as APU flag
...
Change-Id: If718a20f62f0ba8d83c01a0b2d16ff3f706f7bd4
2023-12-08 11:40:34 -05:00
Satyanvesh Dittakavi
912cc407a4
SWDEV-432684 - SWDEV-433437 - Fix test_gpu_jit MIGraphx test failure
...
Add clang pragma push and pop diagnostics for ignoring "-Weverything"
in the hiprtc builtins header. Otherwise this will ignore even the
geniune errors occurring in the hiprtc kernels.
Change-Id: I8c3dacf902732b2ea495d83e797369f8aebd75d6
2023-12-08 11:12:43 -05:00
Saleel Kudchadker
058b2702db
SWDEV-301667 - Logging refactor
...
- Remove newline from logging as log function internally inserts a new
line
Change-Id: I25eb2242a1f1e87cf811bcc373d1d485b2e027a8
2023-12-07 12:12:57 -05:00
Saleel Kudchadker
59a6a6c12e
SWDEV-433634 - Check Relaxed capture interaction mode for the thread
...
- Allow capture to be less rectrictive if we set the global thread
interaction mode for the thread.
Change-Id: I84f65d9418ac26ada0477c85a45a3831c2351ce4
2023-12-06 22:35:20 +00:00
Ioannis Assiouras
2ede1c9adb
SWDEV-436236 - Fixed integer division to float result in Heap::FindMemory
...
Change-Id: Ic72cfdbe1f62fabd3e25d33bfa540d82a02480d0
2023-12-06 12:41:00 -05:00
Satyanvesh Dittakavi
7febad13be
Revert "SWDEV-419480 - HIPRTC implementation of standard headers shouldn't be in std namespace"
...
This reverts commit 353dbe6e3b .
Reason for revert: This is considered a breaking change and requires
multiple apps to change their behavior. This will be reintroduced in later releases.
Change-Id: I3481627115af1872785585a155cc6a0ecfbe1372
2023-12-06 03:11:59 -05:00
Anusha GodavarthySurya
d347f1d67d
SWDEV-351966 - Remove hipRegisterTracerCallback from dispatch table
...
Change-Id: Ib343e2c8414a98c0cee6c60fb74a47bb859d8f45
2023-12-06 01:23:33 -05:00
Rahul Garg
afc28b091e
SWDEV-427855 - hipamd change for profiler and TF fix
...
This reverts commit 57cb840058 .
Change-Id: Id69e47a1afd336ae1edb9c8e173be27e7b9dcc8d
2023-12-05 20:33:48 -05:00
Ioannis Assiouras
3c6505c2d5
SWDEV-435715 - Acquire the streamSetLock prior to iterating the set in WaitActiveStreams
...
Change-Id: I0a9721dcde1a3716192d532e290d8a7afc8ac9fc
2023-12-05 04:12:24 -05:00
Satyanvesh Dittakavi
270c6d48f1
Revert "SWDEV-431175 - Remove datatypes from HIPRTC"
...
This reverts commit 629e279f72 .
Reason for revert: This is considered a breaking change and requires
multiple apps to change their behavior. This will be reintroduced in later releases.
Change-Id: I0354ce4e0f5e6c402499a7a8c2aaf43bf5b1bfc7
2023-12-05 02:32:38 -05:00
Ioannis Assiouras
8a53c97fd1
SWDEV-435168 - Added virtual destructor in StreamCallback
...
Change-Id: I548f34e4f4208658a5a6c35927fc424415186354
2023-12-04 17:32:45 -05:00
Jatin Chaudhary
5b5213adf5
SWDEV-431399 - add const cast to pointer before casting it to function type.
...
C++ does not allow const qualifier on function type, even if we add it it will get ignored and clang will fail with failed cast from const void* to func*. const_cast here is necessary to make it work.
Change-Id: I72cec8d9e715bdf9e163cb9b08393dd733dafaf2
2023-12-04 04:34:57 -05:00
Ioannis Assiouras
8bdda90071
SWDEV-434702 - get the nullstream in constant time in iHipWaitActiveStreams
...
Change-Id: Ib92cc4d2ca1b725cf30b24cdd711c873fd513d95
2023-12-03 19:05:18 -05:00
Satyanvesh Dittakavi
629e279f72
SWDEV-431175 - Remove datatypes from HIPRTC
...
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 to match the behavior.
Change-Id: I77ef70e846950698cb00375f5d0501b907f01fe3
2023-11-28 11:32:12 -05:00
Anusha GodavarthySurya
5e21f0c6bd
SWDEV-351966 - Dispatch table for hip runtime
...
Change-Id: Ie4a44fa8cf1ff9c152146070bbbf6b0636d4e325
2023-11-22 01:11:19 -05:00
Ioannis Assiouras
3e6b4a528d
SWDEV-433069 - Fixed hip mempool impl SetAttribute switch-case
...
Change-Id: I0b1b8414db09051125dae4ea98f70827f10c4b98
2023-11-17 17:51:39 -05:00
Rahul Garg
57cb840058
SWDEV-427855 - Revert "SWDEV-427855 - hipamd change for profiler and TF fix"
...
This reverts commit 3b9963c499 .
Reason for revert: <Need rocprofiler changes to avoid PSDB failures>
Change-Id: I856b7ea30744f1b7bb099b6adbce2155201be539
2023-11-16 00:20:54 -05:00
jiabaxie
3b9963c499
SWDEV-427855 - hipamd change for profiler and TF fix
...
Change-Id: If32eb0ee152f3f46741a8277689363181c8753e8
2023-11-15 23:36:52 -05:00
Jaydeep Patel
067e2a355f
SWDEV-432530 - Change to --hip-path.
...
Change-Id: I6fb2fd9111750f4fe5a56be440841ec32c0aa53c
2023-11-15 23:22:44 -05:00