Commit Graph
64512 Commits
Author SHA1 Message Date
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
jie1zhan 8a0fe6a832 Free the executable memory , when it don't used
Fix the issue of rocrtst test - The runtime failed to allocate the necessary resources

Change-Id: Ie4ffeb939fb322db068f3132a7973a359c204176
2022-07-29 15:16:37 -04:00
jie1zhan da0ca94219 Free the executable memory , when it don't used
Fix the issue of rocrtst test - The runtime failed to allocate the necessary resources

Change-Id: Ie4ffeb939fb322db068f3132a7973a359c204176


[ROCm/ROCR-Runtime commit: 8a0fe6a832]
2022-07-29 15:16:37 -04:00
skhatri 364715cbc6 Enabled allocation of pseudo fine grain memory where memory ordering is per point to point connection
Atomic memory operations on these memory buffers are not guaranteed
to be visible at system scope

Change-Id: I4cccde114632071a000384502a83bc191e77e85b
2022-07-29 15:15:56 -04:00
skhatri 23bd10b0ce Enabled allocation of pseudo fine grain memory where memory ordering is per point to point connection
Atomic memory operations on these memory buffers are not guaranteed
to be visible at system scope

Change-Id: I4cccde114632071a000384502a83bc191e77e85b


[ROCm/ROCR-Runtime commit: 364715cbc6]
2022-07-29 15:15:56 -04:00
Konstantin Zhuravlyov d962fc39bb Add support for the following kernel symbol query:
- HSA_EXECUTABLE_SYMBOL_INFO_KERNEL_DYNAMIC_CALLSTACK

Change-Id: Idff5c1a2ce2a3e2d65bcc9cf1f66a68d37cd41ef
2022-07-29 15:15:24 -04:00
Konstantin Zhuravlyov 91448848c6 Add support for the following kernel symbol query:
- HSA_EXECUTABLE_SYMBOL_INFO_KERNEL_DYNAMIC_CALLSTACK

Change-Id: Idff5c1a2ce2a3e2d65bcc9cf1f66a68d37cd41ef


[ROCm/ROCR-Runtime commit: d962fc39bb]
2022-07-29 15:15:24 -04:00
Konstantin Zhuravlyov 5a49b4d17f Bring AMDHSAKernelDescriptor.h in sync with llvm
Change-Id: Icd35100ad4d7eb8638786d306ecfbbb1c8842db1
2022-07-29 15:14:39 -04:00
Konstantin Zhuravlyov 2ac93924c2 Bring AMDHSAKernelDescriptor.h in sync with llvm
Change-Id: Icd35100ad4d7eb8638786d306ecfbbb1c8842db1


[ROCm/ROCR-Runtime commit: 5a49b4d17f]
2022-07-29 15:14:39 -04:00
ROCm CI Service Account de7cbdd4cd SWDEV-299940 - Needs to Fix Malloc tests (#2832)
Change-Id: I21739d88871b5813cf266a6be8eb05ecee487046

[ROCm/hip-tests commit: 870c9c218a]
2022-07-29 16:31:04 +05:30
ROCm CI Service Account 870c9c218a SWDEV-299940 - Needs to Fix Malloc tests (#2832)
Change-Id: I21739d88871b5813cf266a6be8eb05ecee487046
2022-07-29 16:31:04 +05:30
ROCm CI Service Account 8d81f1ddbc SWDEV-299940 - Needs to Fix Malloc tests (#2832)
Change-Id: I21739d88871b5813cf266a6be8eb05ecee487046

[ROCm/hip commit: 4d014ce711]
2022-07-29 16:31:04 +05:30
ROCm CI Service Account 4d014ce711 SWDEV-299940 - Needs to Fix Malloc tests (#2832)
Change-Id: I21739d88871b5813cf266a6be8eb05ecee487046
2022-07-29 16:31:04 +05:30
Maneesh Gupta ea0ae7d4ee Fixed typo in Jenkinsfile
[ROCm/hip commit: b1619122fd]
2022-07-29 15:45:57 +05:30
Maneesh Gupta b1619122fd Fixed typo in Jenkinsfile 2022-07-29 15:45:57 +05:30
Hao Zhou 7e154c224b Merge amd-staging into amd-master 20220729
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Icb8fc012b23f5e991630ad5234339245bc68c273


[ROCm/rocm_smi_lib commit: 4626bf8938]
2022-07-29 15:53:10 +08:00
Hao Zhou 4626bf8938 Merge amd-staging into amd-master 20220729
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Icb8fc012b23f5e991630ad5234339245bc68c273
2022-07-29 15:53:10 +08:00
Dylan Angus 4a96554d63 Extending hipMallocManaged tests (#2670)
* Extending hipMallocManaged tests

* Fixed compilation error

* Added tests skips for hipMallocManaged tests on devices that don't support managed memory

* Removed unused stream


[ROCm/hip-tests commit: 4b07ea6125]
2022-07-28 20:05:27 -07:00
Dylan Angus 4b07ea6125 Extending hipMallocManaged tests (#2670)
* Extending hipMallocManaged tests

* Fixed compilation error

* Added tests skips for hipMallocManaged tests on devices that don't support managed memory

* Removed unused stream
2022-07-28 20:05:27 -07:00
Dylan Angus 2e94fbf1c2 Extending hipMallocManaged tests (#2670)
* Extending hipMallocManaged tests

* Fixed compilation error

* Added tests skips for hipMallocManaged tests on devices that don't support managed memory

* Removed unused stream


[ROCm/hip commit: 1873df7bdd]
2022-07-28 20:05:27 -07:00
Dylan Angus 1873df7bdd Extending hipMallocManaged tests (#2670)
* Extending hipMallocManaged tests

* Fixed compilation error

* Added tests skips for hipMallocManaged tests on devices that don't support managed memory

* Removed unused stream
2022-07-28 20:05:27 -07:00