Commit Graph

88 Commits

Author SHA1 Message Date
ROCm CI Service Account d305e34173 SWDEV-240806 - Added API hipLaunchHostFunc and updated graph test for host graph node (#2512)
Change-Id: Idf759064946e503a2b3cc2a38f1a7cb049012688
2022-02-24 18:56:56 +05:30
ROCm CI Service Account 389db38b03 SWDEV-323472 - Add hipThreadExchangeStreamCaptureMode (#2519)
Change-Id: I1c610833bf3e21e4ba311a89cec0e8866b9164bd
Co-authored-by: Christophe Paquot <christophe.paquot@amd.com>
2022-02-24 10:22:58 +05:30
ROCm CI Service Account 7f520ae104 SWDEV-301947 - Add new enum for boost CU count (#2490)
Change-Id: I39b96218edbdf8a77473be8fa524999bb7df036a

Co-authored-by: Saleel Kudchadker <Saleel.Kudchadker@amd.com>
2022-02-22 14:19:05 -08:00
pghafari b59522d188 SWDEV-245531 - GLInterop - adding register image api (#2454)
Change-Id: Iff40f244f0d9c31b462c5878a8c8eed6f5292517
2022-01-11 13:49:31 +05:30
Satyanvesh Dittakavi 610565fe68 SWDEV-292714 - Add support for hipPointerGetAttribute (#2425)
Change-Id: I9062ab2ef88d835a35fd4c9251d03f469677fa4e
2021-12-02 11:47:10 +05:30
TomSang 5c8af57480 SWDEV-303204 - Disable texture/image Apis on some devices. (#2381)
Modify texture tests to pass on devices that don't support texture.
Add hipDeviceAttributeImageSupport to check image support in runtime

Change-Id: Ia89c494e651a6198a24448b59a91e046a9ebea38
2021-12-02 11:46:13 +05:30
pghafari 2f12b91dac SWDEV-245531 - GLInterop linux api needs extern c (#2416)
Change-Id: If308047efcb6860819ada74203f9283c7c56deb0
2021-11-26 04:49:45 +05:30
Julia Jiang d22fa0012e SWDEV-291894 - update doxygen for HIP APIs (#2382)
Change-Id: I0ca57d6ced43b962d9b002b098e64221c4b267d7
2021-11-25 15:07:52 +05:30
ansurya b4e84a333d SWDEV-240806 - Added few more Graph APIs (#2367)
Change-Id: Ibae3a640edf45a90517bee9ebc364ac01731418a
2021-09-24 16:30:15 +05:30
Julia Jiang 0e48f796cd SWDEV-291894 - update warning message for hipRuntimeGetVersion (#2334)
Change-Id: Ibec032765cc53c1a438272b0114d57947c9fded7
2021-09-14 13:35:37 +05:30
Julia Jiang af3c38c477 SWDEV-291894 - Add doxygen for hip graph APIs (#2328)
Change-Id: Id878125b34711fc43570dd680c05310d9e2a4015
2021-09-02 08:47:38 +05:30
gandryey 1f53fbea8f SWDEV-295555 - Add coherency mode query (#2316)
Add the new extension to HIP for quering coherency mode.
The new enum hipMemRangeAttributeCoherencyMode can be used in
hipMemRangeGetAttribute(s), which will return one of the following
values:
hipMemRangeCoherencyModeFineGrain, hipMemRangeCoherencyModeCoarseGrain,
hipMemRangeCoherencyModeIndeterminate

Change-Id: I8717873c254888ea69facc1178d3682e8747c3a7
2021-08-19 10:29:23 +05:30
Rahul Garg 03e205a1c8 SWDEV-297563 - Move surface types
Change-Id: I1dbb3affce688b75d866917592c497df0cfd358d
2021-08-02 18:50:33 +00:00
Rahul Garg 54e703b17e SWDEV-297563 - Update hip-common declarations
Change-Id: I2545489e3dde55fb9375b9f4cc20ea271fafd3f0
2021-08-02 11:56:28 -04:00
Sourabh Betigeri 8dfb12b6d2 SWDEV-292523 - Marking streamOperations as a Beta feature in documentation
Change-Id: Ib7323ff92df1bd111891b0c7c5e69b31e8ad8e68
2021-07-30 15:09:59 -04:00
Tao Sang c053d60282 SWDEV-294591 - Fix hipEventIpc failure on NV
make hipIpcOpenEventHandle has the same behavour of cudaIpcOpenEventHandle.
Add Api usages.

Change-Id: I4248b2cebd3de156f9d5d427e1797da22fb964eb
2021-07-28 15:28:39 -04:00
Sarbojit Sarkar aca0437750 SWDEV-292547 - hipStreamPerThread support
Change-Id: I66d5b9a34ef26cfbd8ab608db20655a3b1d9c49a
2021-07-23 00:27:27 -04:00
Sourabh Betigeri 6deaba3fa7 SWDEV-292523 - [hip]Change in the signature of streamOperations APIs, particularly 'value' arg to unsigned 'value
Change-Id: If97e3de553dfef19c8bf2d9797a6c68ec94a0ff6
2021-07-22 15:35:06 -04:00
Vladislav Sytchenko d3b06fd5a6 SWDEV-281658 - Workaround for Windows build
Currently hip_prof_str.h does not include any header files. All HIP
declarations are being resolved by accident.

Pushing it to the end of hip_runtime_api.h will allow it to include the
definition of GLuint.

Change-Id: Ibb33b93cc7eab2028ba96f166bcb06f2f079feef
2021-07-22 10:49:31 -04:00
Anusha GodavarthySurya 91ac5744ef SWDEV-240806 - Added API hipGraphAddMemcpyNode1D
Change-Id: I32440de0e890b001274fc7ca564fd91363d716d8
2021-07-21 23:12:47 -04:00
Tao Sang 586165ebc2 SWDEV-294588 - Enable NV printf DTests
Enable NV printf DTests as many as possible.
Fix the bugs due to behavour difference between
Hip-Rocclr and Cuda.
Add hipLimitPrintfFifoSize.

Change-Id: I3fe6dbc35a7a140a9919df197b7885df83d28049
2021-07-20 21:22:11 -04:00
Christophe Paquot b7c0b21814 SWDEV-240807 - Fix header file
Removed #ifdef __cplusplus around Graph API

Change-Id: I24000d49acd3b93cb19ae2f52618ae8c4a506e3b
2021-07-20 14:49:33 -07:00
Anusha GodavarthySurya 6e7ea5b612 SWDEV-240806 - Added Implementation for few more graph APIs
Change-Id: I1e443cf1b4e3a1e85f6fb9c1db8fdfa7c1fdfe06
2021-07-14 01:58:03 -04:00
German Andryeyev a20ad647ea SWDEV-293583 - correct a typo in hipStreamAttachMemAsync
Change-Id: Ib9c634053a152353ae657a00fea4b072a824c5ba
2021-07-12 12:40:14 -04:00
agunashe d529637fbc SWDEV-293742 - Update copyright end year
Change-Id: I2cb7bbd9a6d9da28116ba9dd9cec4e60525444e2
2021-07-07 12:57:23 -04:00
pghafari d0c1be0db6 SWDEV-245531 - GLInterop: Add Buffer Interop api
Change-Id: Iddb0bb2a232e97d9071320244adc360bd7d011b5
2021-07-06 10:06:33 -04:00
pghafari 56f90df89e SWDEV-245531 - GLInterop: Add Buffer Interop support
Change-Id: I97ed7366d3cecafc2f621894258ecf8ab0d26612
2021-06-14 20:36:55 -04:00
Julia Jiang 470f3e521c SWDEV-290704 - Add HIPrtc doxygen in API headers
Change-Id: I629bdeaef7a01aec45bb9453d883213c73008d1c
2021-06-10 17:16:01 -04:00
Rahul Garg ce76ec8b88 SWDEV-288707 - Merge HIP refactored code to staging
These changes move-
- rocclr based implementation inside src/hipamd/src
- platform specific (both nvidia and amd) headers inside
src/hipamd/include/hip

Change-Id: Ia29791a727244952591fe1d813dcef0303b73a9e
2021-06-07 00:07:24 +00:00
Anusha Godavarthy Surya c35ba37287 SWDEV-240806 - Initial commit for hipGraph and stream capture infrastructure
On StreamBegincapture captures the parameters passed to APIs and respective node will be created and added to graph
All parameters are passed to STREAM_CAPTURE macro, it checks if stream in capture mode and redirects the call to the capture function and returns
Updated hipStream and hipEvent with capture parameters
Added handling for hipStreamBeginCapture & hipStreamEndCapture

Change-Id: Ic8926a7b4336c2cc81f0b3a9a224aa392c474134
2021-05-07 17:38:16 -04:00
Tao Sang ca50ac83c7 SWDEV-273138 - Rearrange device attributes
Change-Id: Iab5902c9a2702456fbe437fdefc40541c48abb74
2021-04-12 17:05:27 -04:00
Sarbojit Sarkar 492ccc3281 SWDEV-260454 - Fix for idenfying bad streams
Change-Id: I122ff6f47535c3c76ab56ba49ab1450ef886b15f
2021-04-07 12:13:30 -04:00
Tao Sang ca0cc36ef4 SWDEV-273138 - Update canUseStreamWaitValue retrieving
Remove canUseStreamWaitValue from hipDeviceProp_t.
Update canUseStreamWaitValue retrieving in hipDeviceGetAttribute().

Change-Id: I275bd42d8b03e141caaf9f1bc6b714e51ca72dfb
2021-03-18 22:42:35 -04:00
Satyanvesh Dittakavi 0303084b0e SWDEV-275317 - Fix hipMemcpy2DFromArray to return proper error types
Change-Id: Id722865d81460bfd2fa6ad7a198b6e3c2a08265a
2021-03-09 05:22:23 -05:00
Ravi C Akkenapally e89b228eac SWDEV-179105 - Stream Operations: Add swqupport for Wait and Write
Change-Id: I9d6d0665d12b62fe705ce1569a0e8264a4f23ab7
2021-03-02 12:15:46 -08:00
Tao Sang c2adc70d4d 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
2021-01-05 10:39:31 -05:00
Jatin Chaudhary d056171a20 Updating the gcnArchName to now have target id
Change-Id: Ibd5576e0fb5b46e8f212de4ec57cd96eb1d3c157
2020-12-09 01:22:08 -05:00
Vladislav Sytchenko fb04bdc4f2 Report maxTexture1DLinear property
Change-Id: If562bbee80d8b98712806cb8258b5a7482d33bf6
2020-11-20 10:18:20 -05:00
German Andryeyev d9f655f50e Report managed memory capabilities
Change-Id: I241a42e26ee49fb47dcb3ba87c4bd8fb691dffdf
2020-10-13 16:09:43 -04:00
Vladislav Sytchenko ad2d55c144 Revert "Revert "Merge branch 'amd-master-next' into amd-npi-next""
This reverts commit 374ead1d19.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I92ceb171e31026ed1864704cef2fc1497b883ef9
2020-10-05 13:20:58 -04:00
Vladislav Sytchenko 374ead1d19 Revert "Merge branch 'amd-master-next' into amd-npi-next"
This reverts commit 73558e3363.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I53322718dadde2c98f96140b8e260ec7ee9ef721
2020-10-05 13:02:39 -04:00
agodavar 288fbe5af3 SWDEV-249870 - Short-Term solution for Pre-Compiled Headers for Online Compilation
Change-Id: Iec989787e546ff2eb68c4b146dc540655698b569
2020-09-24 12:18:06 -04:00
Jason Tang 38cd2b96c7 Add asicRevision
Change-Id: I59f3ad20b9bdadf77bd1e0725f7a401d7ad423a3
2020-06-16 17:54:20 -04:00
Jason Tang 1c0d737e1f SWDEV-227909 - Add gcnArchName
Change-Id: Iea6d16b5d693dd0d900fa424d7a321c39315430e
2020-06-05 15:33:55 -04:00
Alex Xie d890d77da4 SWDEV-221166 - Detect support for large bar access through HIP runtime API
Change-Id: Iaa9756c1b5e40c1ab5afb38e44a6699fa5f6c13f
2020-05-01 20:39:52 -04:00
Maneesh Gupta 2af31479e2 Merge branch 'amd-master' into amd-master-next
Change-Id: I3094c15008093f2072bcd38aca4ea90aeae2d97b
2020-04-09 06:31:00 -04:00
German Andryeyev 5fe91ccb1b SWDEV-184710
Support hipLaunchCooperativeKernelMultiDevice()

- Add validation logic for MGPU launches to pass a cuda test

Change-Id: Iccca7fde43493fc3bc6685512d39202271ae3e92
2020-04-06 16:38:27 -04:00
Aryan Salmanpour 6e867eacb6 [HIP][HIPIFY] Add some missing flags for cooperative launch and occupancy APIs 2020-01-30 15:05:53 -05:00
vsytch f72a669487 Add missing texturePitchAlignment member to the hipDeviceProp_t struct. (#1802)
* Add missing texturePitchAlignment member to the hipDeviceProp_t struct.

* Add missing hipDeviceAttributeTexturePitchAlignment enumerator to the hipDeviceAttribute_t enum.

* Initialize texturePitchAlignment to 256. This works for gfx9+, but is technically overaligned in most cases for pre-gfx9.

* Add the texturePitchAlignment property to the NVCC path.
2020-01-27 16:37:00 -08:00
Maneesh Gupta 00bd5d1cec Revert PRs that break ROCm builds (#1781)
Fixes SWDEV-218626 and SWDEV-218629

Changes:
- Revert "`static inline` in a header, just like excess sugar in a diet, causes bloat (#1692)"
   This reverts commit be70b9f7e7.
- Revert "Fix rocFFT build failure (#1777)"
   This reverts commit 753277422a.
2020-01-08 15:11:58 +05:30