76333 کامیت‌ها
مولف SHA1 پیام تاریخ
Jatin Chaudhary fb0006cafe Add tests for hipStreamWaitEvent (#2559)
[ROCm/hip-tests commit: 867f1276b7]
2022-08-03 16:47:34 +05:30
Jatin Chaudhary 867f1276b7 Add tests for hipStreamWaitEvent (#2559) 2022-08-03 16:47:34 +05:30
Jatin Chaudhary ada3780d92 Add tests for hipStreamWaitEvent (#2559)
[ROCm/hip commit: 9d9c36e829]
2022-08-03 16:47:34 +05:30
Jatin Chaudhary 9d9c36e829 Add tests for hipStreamWaitEvent (#2559) 2022-08-03 16:47:34 +05:30
Maneesh Gupta 576e4aa8e1 SWDEV-299127 - Merge 'develop' into 'amd-staging'
Change-Id: I61b128105c47d7675e01dfe85effed181fd8da69


[ROCm/hip commit: 66c86694f5]
2022-08-03 02:30:14 +00:00
Maneesh Gupta 66c86694f5 SWDEV-299127 - Merge 'develop' into 'amd-staging'
Change-Id: I61b128105c47d7675e01dfe85effed181fd8da69
2022-08-03 02:30:14 +00:00
Maneesh Gupta 38f1733c9f Fix typo in config_amd_windows.json
[ROCm/hip-tests commit: 00596ef7a6]
2022-08-03 07:57:33 +05:30
Maneesh Gupta 00596ef7a6 Fix typo in config_amd_windows.json 2022-08-03 07:57:33 +05:30
Maneesh Gupta d6eac5ace7 Fix typo in config_amd_windows.json
[ROCm/hip commit: eeb10a8238]
2022-08-03 07:57:33 +05:30
Maneesh Gupta eeb10a8238 Fix typo in config_amd_windows.json 2022-08-03 07:57:33 +05:30
Satyanvesh Dittakavi 3b1e9dc52f SWDEV-2 - Fix hiprtcCompileProgram
- hiprtcCompileProgram should create isa with temp name when
  program name is not provided along with --save-temps option

Change-Id: I47974e2ac56336c851531622ff7d2a3ffb53455e


[ROCm/clr commit: 958b97b433]
2022-08-02 16:16:31 -04:00
Satyanvesh Dittakavi 958b97b433 SWDEV-2 - Fix hiprtcCompileProgram
- hiprtcCompileProgram should create isa with temp name when
  program name is not provided along with --save-temps option

Change-Id: I47974e2ac56336c851531622ff7d2a3ffb53455e
2022-08-02 16:16:31 -04:00
Jonathan R. Madsen 9defbdcd4d RPATH to rocprofiler_LIBRARY_DIR for ROCm < v5.2 (#126)
* RPATH to rocprofiler_LIBRARY_DIR for ROCm < v5.2

- until v5.2 only librocprofiler64.so was symlinked in /opt/rocm. Thus linker using SOVERSION caused issues finding librocprofiler64.so.1

* Test ROCm w/ CMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF

* INSTALL_RPATH_USE_LINK_PATH for omnitrace exe

[ROCm/rocprofiler-systems commit: b79ce10fee]
2022-08-02 14:19:04 -05:00
Jonathan R. Madsen b79ce10fee RPATH to rocprofiler_LIBRARY_DIR for ROCm < v5.2 (#126)
* RPATH to rocprofiler_LIBRARY_DIR for ROCm < v5.2

- until v5.2 only librocprofiler64.so was symlinked in /opt/rocm. Thus linker using SOVERSION caused issues finding librocprofiler64.so.1

* Test ROCm w/ CMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF

* INSTALL_RPATH_USE_LINK_PATH for omnitrace exe
2022-08-02 14:19:04 -05:00
Jonathan Kim 9d2fe1ac2a Fix GPU destruction when user disabled
GPUs excluded by RVD are not expected to have scratch, memory, trap
handling nor memory regions set up.  Now that these GPUs are added to
a new list, early return on agent destruction to prevent bad function
calls on destroy.

Also fix up broken memory releases between the gpu lists and ugly braces.

Change-Id: I52fc6e86ceba0a0383cedc63310eb409515eaf9f
2022-08-02 14:18:43 -04:00
Jonathan Kim cae4ed0056 Fix GPU destruction when user disabled
GPUs excluded by RVD are not expected to have scratch, memory, trap
handling nor memory regions set up.  Now that these GPUs are added to
a new list, early return on agent destruction to prevent bad function
calls on destroy.

Also fix up broken memory releases between the gpu lists and ugly braces.

Change-Id: I52fc6e86ceba0a0383cedc63310eb409515eaf9f


[ROCm/ROCR-Runtime commit: 9d2fe1ac2a]
2022-08-02 14:18:43 -04:00
Wenkai Du f70830d629 Revert "Use nontemporal in slow path and add XGMI sys type (#575)" (#590)
This reverts commit e04bba619a.

[ROCm/rccl commit: 9089e68a99]
2022-08-02 09:31:53 -07:00
Wenkai Du 9089e68a99 Revert "Use nontemporal in slow path and add XGMI sys type (#575)" (#590)
This reverts commit b250c01cbe.
2022-08-02 09:31:53 -07:00
Kent Russell 90ada94141 kfdtest: Add return statement for ReadSMIEventThread
This didn't return anything, so add a "return 0" at the end, since the
function expects to return an int value

Change-Id: I17c398e431b2ce4571e6ca4abe6d567f110ea2a7
2022-08-02 09:22:49 -04:00
Kent Russell 558e6c34bd kfdtest: Add return statement for ReadSMIEventThread
This didn't return anything, so add a "return 0" at the end, since the
function expects to return an int value

Change-Id: I17c398e431b2ce4571e6ca4abe6d567f110ea2a7


[ROCm/ROCR-Runtime commit: 90ada94141]
2022-08-02 09:22:49 -04:00
Sarbojit Sarkar 67f9e52ffb SWDEV-338732 - Made hipMemset* default async
Change-Id: I0ebf6473b6825162fc828bb8cac47743e14ffd19


[ROCm/clr commit: 0444d20e07]
2022-08-02 07:14:57 -04:00
Sarbojit Sarkar 0444d20e07 SWDEV-338732 - Made hipMemset* default async
Change-Id: I0ebf6473b6825162fc828bb8cac47743e14ffd19
2022-08-02 07:14:57 -04:00
Sarbojit Sarkar a0981a092b SWDEV-343921 - added Max stack size
Change-Id: I5c1a088e05215ca951afc9d92f8d298c5e3a65f1


[ROCm/clr commit: 27a08a132f]
2022-08-02 07:13:18 -04:00
Sarbojit Sarkar 27a08a132f SWDEV-343921 - added Max stack size
Change-Id: I5c1a088e05215ca951afc9d92f8d298c5e3a65f1
2022-08-02 07:13:18 -04:00
Jaydeep Patel cbc97ad59a SWDEV-329516 - Propogate hipErrorSharedObjectInitFailed from getStatFunc.
Change-Id: I60160f8d0c0dab20649a4e7c03448f4ae9a9c95b


[ROCm/clr commit: c61701323e]
2022-08-02 01:50:50 -04:00
Jaydeep Patel c61701323e SWDEV-329516 - Propogate hipErrorSharedObjectInitFailed from getStatFunc.
Change-Id: I60160f8d0c0dab20649a4e7c03448f4ae9a9c95b
2022-08-02 01:50:50 -04:00
Laurent Morichetti 7edb46802d Improve hip_prof_api.h's readability
- Don't pass uint32_t arguments by reference.
- Use nullptr instead of NULL.
- Don't add frivolous typedefs.
- Use correct types when available instead of generic integral types.
- Make all roctracer callbacks extern "C" to prepare for a future change
  that will be removing their declaration from hip_runtime_api.h.
- Rename cb/sem sync and release functions -> reader_lock/writer_lock
  acquire and release.

Change-Id: If203fee077d421a9782fcd34607a413b8c3dcfc8


[ROCm/clr commit: 9f09ca929e]
2022-08-01 17:11:50 -07:00
Laurent Morichetti 9f09ca929e Improve hip_prof_api.h's readability
- Don't pass uint32_t arguments by reference.
- Use nullptr instead of NULL.
- Don't add frivolous typedefs.
- Use correct types when available instead of generic integral types.
- Make all roctracer callbacks extern "C" to prepare for a future change
  that will be removing their declaration from hip_runtime_api.h.
- Rename cb/sem sync and release functions -> reader_lock/writer_lock
  acquire and release.

Change-Id: If203fee077d421a9782fcd34607a413b8c3dcfc8
2022-08-01 17:11:50 -07:00
Laurent Morichetti 4816acb0b2 Fix a race condition when setting the callbacks
When acquiring the reader's lock (sem_sync()...sem_release()), it is
possible for a writer to squeeze by if the reader goes into sync_wait().
The writer could re-acquire the entry.sync between entry.sem > 0 and
entry.sync = 0.

void sync_wait(uint32_t id) {
    sem_decrement(id);
    while (entry(id).sync.load()) {}
    // <--- HERE
    sem_increment(id);
}

This could result in both the reader and the writer accessing
{ callback, arg } at the same time, and the reader could read
inconsistent data, for example: { new callback, old arg }.

The solution is to re-test entry.sync when returning from sync_wait():

void sem_sync(uint32_t id) {
    sem_increment(id);
-   if (entry(id).sync.load() == true) sync_wait(id);
+   while (entry(id).sync.load() == true) sync_wait(id);
}

Change-Id: I22f74f4cb9a5f027aac8aa4ed3e633acc19df4b8


[ROCm/clr commit: 6f78083f2a]
2022-08-01 20:03:10 -04:00
Laurent Morichetti 6f78083f2a Fix a race condition when setting the callbacks
When acquiring the reader's lock (sem_sync()...sem_release()), it is
possible for a writer to squeeze by if the reader goes into sync_wait().
The writer could re-acquire the entry.sync between entry.sem > 0 and
entry.sync = 0.

void sync_wait(uint32_t id) {
    sem_decrement(id);
    while (entry(id).sync.load()) {}
    // <--- HERE
    sem_increment(id);
}

This could result in both the reader and the writer accessing
{ callback, arg } at the same time, and the reader could read
inconsistent data, for example: { new callback, old arg }.

The solution is to re-test entry.sync when returning from sync_wait():

void sem_sync(uint32_t id) {
    sem_increment(id);
-   if (entry(id).sync.load() == true) sync_wait(id);
+   while (entry(id).sync.load() == true) sync_wait(id);
}

Change-Id: I22f74f4cb9a5f027aac8aa4ed3e633acc19df4b8
2022-08-01 20:03:10 -04:00
ROCm CI Service Account 874a78f397 SWDEV-332251 - change catch-amd package name to hip-catch-amd (#2838)
1) catch-amd package name to hip-catch-amd
2) Install to /opt/rocm/test/hip instead of $ROCM_PATH/test/hip

Change-Id: Ie466e52a609c516aa14b7fced7552f7fbd66bc3a


[ROCm/hip-tests commit: 88ae7c18f7]
2022-08-01 15:23:48 -07:00
ROCm CI Service Account 88ae7c18f7 SWDEV-332251 - change catch-amd package name to hip-catch-amd (#2838)
1) catch-amd package name to hip-catch-amd
2) Install to /opt/rocm/test/hip instead of $ROCM_PATH/test/hip

Change-Id: Ie466e52a609c516aa14b7fced7552f7fbd66bc3a
2022-08-01 15:23:48 -07:00
ROCm CI Service Account ab7ee87c97 SWDEV-332251 - change catch-amd package name to hip-catch-amd (#2838)
1) catch-amd package name to hip-catch-amd
2) Install to /opt/rocm/test/hip instead of $ROCM_PATH/test/hip

Change-Id: Ie466e52a609c516aa14b7fced7552f7fbd66bc3a


[ROCm/hip commit: 2d90452c96]
2022-08-01 15:23:48 -07:00
ROCm CI Service Account 2d90452c96 SWDEV-332251 - change catch-amd package name to hip-catch-amd (#2838)
1) catch-amd package name to hip-catch-amd
2) Install to /opt/rocm/test/hip instead of $ROCM_PATH/test/hip

Change-Id: Ie466e52a609c516aa14b7fced7552f7fbd66bc3a
2022-08-01 15:23:48 -07:00
agunashe e8c847ea52 SWDEV-327563 - Win: Disable failing hipMemGetInfo tests (#2836)
[ROCm/hip-tests commit: be9ccad135]
2022-08-01 14:41:20 -07:00
agunashe be9ccad135 SWDEV-327563 - Win: Disable failing hipMemGetInfo tests (#2836) 2022-08-01 14:41:20 -07:00
agunashe 0be57d6eba SWDEV-327563 - Win: Disable failing hipMemGetInfo tests (#2836)
[ROCm/hip commit: 37583e5645]
2022-08-01 14:41:20 -07:00
agunashe 37583e5645 SWDEV-327563 - Win: Disable failing hipMemGetInfo tests (#2836) 2022-08-01 14:41:20 -07:00
Jonathan R. Madsen 3070371089 Fix RPATH handling (#122)
Fix rpath handling

- remove explicit add to CMAKE_INSTALL_RPATH
- remove overriding INSTALL_RPATH_USE_LINK_PATH for exes

[ROCm/rocprofiler-systems commit: 97d17a8ef8]
2022-08-01 14:19:19 -05:00
Jonathan R. Madsen 97d17a8ef8 Fix RPATH handling (#122)
Fix rpath handling

- remove explicit add to CMAKE_INSTALL_RPATH
- remove overriding INSTALL_RPATH_USE_LINK_PATH for exes
2022-08-01 14:19:19 -05:00
Sarbojit Sarkar 6de0657b08 SWDEV-1 - cleanup
Change-Id: Ib50424c87cfc76317eb0c114b5dd3553d8ebd9eb


[ROCm/clr commit: e1f1e38d79]
2022-08-01 00:05:58 -04:00
Sarbojit Sarkar e1f1e38d79 SWDEV-1 - cleanup
Change-Id: Ib50424c87cfc76317eb0c114b5dd3553d8ebd9eb
2022-08-01 00:05:58 -04:00
Chauncey Hui 1d2cb0d3e8 SWDEV-2 - Change OpenCL version number from 3488 to 3489
[ROCm/clr commit: 2eeb00ba8a]
2022-07-30 03:00:06 -04:00
Chauncey Hui 2eeb00ba8a SWDEV-2 - Change OpenCL version number from 3488 to 3489 2022-07-30 03:00:06 -04:00
Laurent Morichetti 6d856ddf53 Add a HIP domain callback stress test
This test verifies that callback argument matches the callback function
as a race condition while setting and reading the pair could result in
mismatched arguments.

Change-Id: I2fe49d98d19bb780b6956ea6718762cfa0de93f8


[ROCm/roctracer commit: 602c67ee00]
2022-07-30 02:51:37 -04:00
Laurent Morichetti 602c67ee00 Add a HIP domain callback stress test
This test verifies that callback argument matches the callback function
as a race condition while setting and reading the pair could result in
mismatched arguments.

Change-Id: I2fe49d98d19bb780b6956ea6718762cfa0de93f8
2022-07-30 02:51:37 -04:00
jie1zhan 17fb40f1f6 Fix allocate memory failed in VRAM
: The kernel driver will do align VRAM allocations to 2MB, instead of 4KB.
Change-Id: Iea9d8c0f02999b9ea5fd931da82240a33f7bcc69
2022-07-30 01:18:50 -04:00
jie1zhan 7e795278fc Fix allocate memory failed in VRAM
: The kernel driver will do align VRAM allocations to 2MB, instead of 4KB.
Change-Id: Iea9d8c0f02999b9ea5fd931da82240a33f7bcc69


[ROCm/ROCR-Runtime commit: 17fb40f1f6]
2022-07-30 01:18:50 -04:00
Wenkai Du 7e124d5b83 Add nccl_net.h to librccl-dev package (#589)
[ROCm/rccl commit: e2cb95a390]
2022-07-29 13:39:49 -07:00
Wenkai Du e2cb95a390 Add nccl_net.h to librccl-dev package (#589) 2022-07-29 13:39:49 -07:00