Commit Graph
64512 Commits
Author SHA1 Message Date
ROCm CI Service Account 0273c48810 SWDEV-345020 - Enable test cases after fix. (#2868)
Change-Id: I7ac1352e2442638e7156b05429fc4feef3af8e3f

[ROCm/hip commit: b4b35b4954]
2022-09-27 11:44:55 +05:30
ROCm CI Service Account b4b35b4954 SWDEV-345020 - Enable test cases after fix. (#2868)
Change-Id: I7ac1352e2442638e7156b05429fc4feef3af8e3f
2022-09-27 11:44:55 +05:30
Finlay 35058813fb added document of modern cpp features supported by the compiler (#2848)
[ROCm/hip commit: 02ee43c5b4]
2022-09-27 10:46:35 +05:30
Finlay 02ee43c5b4 added document of modern cpp features supported by the compiler (#2848) 2022-09-27 10:46:35 +05:30
ROCm CI Service Account 94c0dbb1e0 SWDEV-354273 - Add unit test of sRGB in 1D (#2968)
Add unit test of sRGB for 1DArray(hipResourceTypeArray) and 1DBuffer(hipResourceTypeLinear).
Note that for 1Dbuffer, AMD devices doesn't support sRGB, thus the test is a negative test.

Change-Id: Ib604cf6f3abd3b90813def1d563c53d42328bace

[ROCm/hip-tests commit: 67c2b50382]
2022-09-27 10:34:57 +05:30
ROCm CI Service Account 67c2b50382 SWDEV-354273 - Add unit test of sRGB in 1D (#2968)
Add unit test of sRGB for 1DArray(hipResourceTypeArray) and 1DBuffer(hipResourceTypeLinear).
Note that for 1Dbuffer, AMD devices doesn't support sRGB, thus the test is a negative test.

Change-Id: Ib604cf6f3abd3b90813def1d563c53d42328bace
2022-09-27 10:34:57 +05:30
ROCm CI Service Account be2ab61022 SWDEV-354273 - Add unit test of sRGB in 1D (#2968)
Add unit test of sRGB for 1DArray(hipResourceTypeArray) and 1DBuffer(hipResourceTypeLinear).
Note that for 1Dbuffer, AMD devices doesn't support sRGB, thus the test is a negative test.

Change-Id: Ib604cf6f3abd3b90813def1d563c53d42328bace

[ROCm/hip commit: 05281fda8c]
2022-09-27 10:34:57 +05:30
ROCm CI Service Account 05281fda8c SWDEV-354273 - Add unit test of sRGB in 1D (#2968)
Add unit test of sRGB for 1DArray(hipResourceTypeArray) and 1DBuffer(hipResourceTypeLinear).
Note that for 1Dbuffer, AMD devices doesn't support sRGB, thus the test is a negative test.

Change-Id: Ib604cf6f3abd3b90813def1d563c53d42328bace
2022-09-27 10:34:57 +05:30
ROCm CI Service Account aafd9267bd SWDEV-351054 - Fix error code. (#2966)
- Remove memory track checks.
- Need to skip checking if mem allocation is 0 and remove unused variable.
- hipMemAllocPitch is driver API hence explicit init is required on NVidia platform.

Change-Id: Ie0d35d4901271a3466a50aaee26e67e7f91c8a2f

[ROCm/hip-tests commit: ccfa4fa995]
2022-09-27 10:34:36 +05:30
ROCm CI Service Account ccfa4fa995 SWDEV-351054 - Fix error code. (#2966)
- Remove memory track checks.
- Need to skip checking if mem allocation is 0 and remove unused variable.
- hipMemAllocPitch is driver API hence explicit init is required on NVidia platform.

Change-Id: Ie0d35d4901271a3466a50aaee26e67e7f91c8a2f
2022-09-27 10:34:36 +05:30
ROCm CI Service Account 25642dd8f9 SWDEV-351054 - Fix error code. (#2966)
- Remove memory track checks.
- Need to skip checking if mem allocation is 0 and remove unused variable.
- hipMemAllocPitch is driver API hence explicit init is required on NVidia platform.

Change-Id: Ie0d35d4901271a3466a50aaee26e67e7f91c8a2f

[ROCm/hip commit: f494acdfd0]
2022-09-27 10:34:36 +05:30
ROCm CI Service Account f494acdfd0 SWDEV-351054 - Fix error code. (#2966)
- Remove memory track checks.
- Need to skip checking if mem allocation is 0 and remove unused variable.
- hipMemAllocPitch is driver API hence explicit init is required on NVidia platform.

Change-Id: Ie0d35d4901271a3466a50aaee26e67e7f91c8a2f
2022-09-27 10:34:36 +05:30
ROCm CI Service Account 659e4bf7bb SWDEV-329802 - Move PCH script hip_embed_pch.sh to hipamd (#2829)
Change-Id: If8e52a95a8766bd4b4a696e0b32bb874bebe28d7

[ROCm/hip commit: ee5e2a692e]
2022-09-27 10:33:45 +05:30
ROCm CI Service Account ee5e2a692e SWDEV-329802 - Move PCH script hip_embed_pch.sh to hipamd (#2829)
Change-Id: If8e52a95a8766bd4b4a696e0b32bb874bebe28d7
2022-09-27 10:33:45 +05:30
ROCm CI Service Account 49c20c30ab SWDEV-1 - Update hiprtc markdown document (#2967)
Change-Id: I515d174b8085ac905e19b2e6aa2834685cd70fbc

[ROCm/hip commit: 813915508e]
2022-09-27 07:55:34 +05:30
ROCm CI Service Account 813915508e SWDEV-1 - Update hiprtc markdown document (#2967)
Change-Id: I515d174b8085ac905e19b2e6aa2834685cd70fbc
2022-09-27 07:55:34 +05:30
Saad Rahim 0a24df0144 Removing outdated API documentation (#2888)
[ROCm/hip commit: 1f6cb120fe]
2022-09-27 07:54:07 +05:30
Saad Rahim 1f6cb120fe Removing outdated API documentation (#2888) 2022-09-27 07:54:07 +05:30
Janek van Oirschot b33788a477 Prevent chomp return from overriding HIP_CLANG_TARGET triple information (#2958)
[ROCm/hip commit: 3a9866730d]
2022-09-27 07:46:29 +05:30
Janek van Oirschot 3a9866730d Prevent chomp return from overriding HIP_CLANG_TARGET triple information (#2958) 2022-09-27 07:46:29 +05:30
Siu Chi Chan 6d1409b61f SWDEV-355588 - [hipcc] remove --enable-new-dtags (#2955)
Don't pass the --enable-new-dtags flag to clang, just the LLVM's default

Change-Id: I2bd06181c490e1c0fec3241a404b546de3ebe970

[ROCm/hip commit: 5e7b7e11a5]
2022-09-27 07:46:06 +05:30
Siu Chi Chan 5e7b7e11a5 SWDEV-355588 - [hipcc] remove --enable-new-dtags (#2955)
Don't pass the --enable-new-dtags flag to clang, just the LLVM's default

Change-Id: I2bd06181c490e1c0fec3241a404b546de3ebe970
2022-09-27 07:46:06 +05:30
ROCm CI Service Account d24745cdc0 SWDEV-355608 - hipcc: remove -use_fast_math (#2965)
It doesn't seem to provide any functionality, probably leftover from some experimental codes.

Change-Id: I1720ccf29e057d7f2e18a7dfd1adccd3d51fa80c

[ROCm/hip commit: cb084f4072]
2022-09-27 07:45:11 +05:30
ROCm CI Service Account cb084f4072 SWDEV-355608 - hipcc: remove -use_fast_math (#2965)
It doesn't seem to provide any functionality, probably leftover from some experimental codes.

Change-Id: I1720ccf29e057d7f2e18a7dfd1adccd3d51fa80c
2022-09-27 07:45:11 +05:30
ROCm CI Service Account 4a0fbb5b98 SWDEV-355608 - deprecate a few hipcc-only options (#2962)
Change-Id: I0a57e4afebbad9c4b93b70331869c22c39f1b38e


[ROCm/hip commit: 924db1d9e9]
2022-09-26 16:41:34 -07:00
ROCm CI Service Account 924db1d9e9 SWDEV-355608 - deprecate a few hipcc-only options (#2962)
Change-Id: I0a57e4afebbad9c4b93b70331869c22c39f1b38e
2022-09-26 16:41:34 -07:00
Laurent Morichetti 6ea76c581b Use the "safe" Stack for begin_timestamp
The tracer tool needs to remember the begin timestamps for API
callbacks, and uses a thread_local std::stack for that purpose.

The issue with thread_local objects is that they are destructed
before anything else when the main thread exits. To work around
that issue, we use a "safe" stack in the roctracer API.

Use the same "safe" stack in the tracer tool.

Change-Id: I0d69d4eb44f0205f4102d0d5ef9803a1ec1800a5


[ROCm/roctracer commit: b664937ebd]
2022-09-26 13:44:55 -07:00
Laurent Morichetti b664937ebd Use the "safe" Stack for begin_timestamp
The tracer tool needs to remember the begin timestamps for API
callbacks, and uses a thread_local std::stack for that purpose.

The issue with thread_local objects is that they are destructed
before anything else when the main thread exits. To work around
that issue, we use a "safe" stack in the roctracer API.

Use the same "safe" stack in the tracer tool.

Change-Id: I0d69d4eb44f0205f4102d0d5ef9803a1ec1800a5
2022-09-26 13:44:55 -07:00
Laurent Morichetti e8dc8de195 Fix a typo in HipLoader
rocprof errors out with the following message:
symbol lookup 'KernelNameRef' failed: libamdhip64.so.5: undefined \
  symbol: KernelNameRef

The HipLoader is incorrectly looking for a KernelNameRef symbol
instead of hipKernelNameRef.

Fixed the typo: KernelNameRef -> hipKernelNameRef.

Change-Id: Ia4860e1669707b0c83d67e71b78d362b07a6aaa7


[ROCm/roctracer commit: a287f20961]
2022-09-26 09:31:14 -07:00
Laurent Morichetti a287f20961 Fix a typo in HipLoader
rocprof errors out with the following message:
symbol lookup 'KernelNameRef' failed: libamdhip64.so.5: undefined \
  symbol: KernelNameRef

The HipLoader is incorrectly looking for a KernelNameRef symbol
instead of hipKernelNameRef.

Fixed the typo: KernelNameRef -> hipKernelNameRef.

Change-Id: Ia4860e1669707b0c83d67e71b78d362b07a6aaa7
2022-09-26 09:31:14 -07:00
ROCm CI Service Account 0fc914ca05 SWDEV-331160 - [catch2][dtest] Test cases to test api hipDeviceSetLimit() (#2863)
Change-Id: Ifb78392b55b60ce8b3eb7822a0b32c8fac8cc594

[ROCm/hip-tests commit: b95baa3a18]
2022-09-26 19:49:00 +05:30
ROCm CI Service Account b95baa3a18 SWDEV-331160 - [catch2][dtest] Test cases to test api hipDeviceSetLimit() (#2863)
Change-Id: Ifb78392b55b60ce8b3eb7822a0b32c8fac8cc594
2022-09-26 19:49:00 +05:30
ROCm CI Service Account f31ee4bf3d SWDEV-331160 - [catch2][dtest] Test cases to test api hipDeviceSetLimit() (#2863)
Change-Id: Ifb78392b55b60ce8b3eb7822a0b32c8fac8cc594

[ROCm/hip commit: 2d53608d49]
2022-09-26 19:49:00 +05:30
ROCm CI Service Account 2d53608d49 SWDEV-331160 - [catch2][dtest] Test cases to test api hipDeviceSetLimit() (#2863)
Change-Id: Ifb78392b55b60ce8b3eb7822a0b32c8fac8cc594
2022-09-26 19:49:00 +05:30
Jonathan R. Madsen 073ab3882b Fix deadlocks during initialization (#167)
- More to come in later commit, below is just tidying some stuff up
  - clang-tidy
  - mpi_gotcha quiet about not finding funcs
  - update to new papi config
  - sampling block_samples / unblock_samples
    - disable calling component's sample functions within sampler
  - release doesn't strip library
  - remove HSA and ROCP env variables from modulefile / setup-env
- preliminary support for LD_PRELOAD usage
- default sampling rate is 300 interrupts / second
- fixes various deadlock issues at startup

[ROCm/rocprofiler-systems commit: 8f36620e29]
2022-09-26 07:52:14 -05:00
Jonathan R. Madsen 8f36620e29 Fix deadlocks during initialization (#167)
- More to come in later commit, below is just tidying some stuff up
  - clang-tidy
  - mpi_gotcha quiet about not finding funcs
  - update to new papi config
  - sampling block_samples / unblock_samples
    - disable calling component's sample functions within sampler
  - release doesn't strip library
  - remove HSA and ROCP env variables from modulefile / setup-env
- preliminary support for LD_PRELOAD usage
- default sampling rate is 300 interrupts / second
- fixes various deadlock issues at startup
2022-09-26 07:52:14 -05:00
nives-vukovic 9989a958c6 EXSWHTEC-15 - Implement additional HipEventElapsedTime tests (#2903)
- Fix minor bug in helper test function in Unit_hipEvent.cc
- Move negative test from Unit_hipEventElapsedTime_DifferentDevices to Unit_hipEventRecord_Negative
- Add Unit_hipEventElapsedTime_NotReady_Negative test when function is called on event that has not been completed

[ROCm/hip-tests commit: f72a34b807]
2022-09-26 13:47:12 +05:30
nives-vukovic f72a34b807 EXSWHTEC-15 - Implement additional HipEventElapsedTime tests (#2903)
- Fix minor bug in helper test function in Unit_hipEvent.cc
- Move negative test from Unit_hipEventElapsedTime_DifferentDevices to Unit_hipEventRecord_Negative
- Add Unit_hipEventElapsedTime_NotReady_Negative test when function is called on event that has not been completed
2022-09-26 13:47:12 +05:30
nives-vukovic 65252464d9 EXSWHTEC-15 - Implement additional HipEventElapsedTime tests (#2903)
- Fix minor bug in helper test function in Unit_hipEvent.cc
- Move negative test from Unit_hipEventElapsedTime_DifferentDevices to Unit_hipEventRecord_Negative
- Add Unit_hipEventElapsedTime_NotReady_Negative test when function is called on event that has not been completed

[ROCm/hip commit: 5bf0dbe5ad]
2022-09-26 13:47:12 +05:30
nives-vukovic 5bf0dbe5ad EXSWHTEC-15 - Implement additional HipEventElapsedTime tests (#2903)
- Fix minor bug in helper test function in Unit_hipEvent.cc
- Move negative test from Unit_hipEventElapsedTime_DifferentDevices to Unit_hipEventRecord_Negative
- Add Unit_hipEventElapsedTime_NotReady_Negative test when function is called on event that has not been completed
2022-09-26 13:47:12 +05:30
Mirza Halilčević 68b3eed631 EXSWHTEC-4 - Implement printing of certain device information (#2884)
* Implement printing out of device count to standard output
* Implement printing out of device attributes retrieved by hipDeviceGetAttribute.
* Implement printing of device properties retrieved by hipGetDeviceProperties.

[ROCm/hip-tests commit: 51a22bb085]
2022-09-26 13:46:38 +05:30
Mirza Halilčević 51a22bb085 EXSWHTEC-4 - Implement printing of certain device information (#2884)
* Implement printing out of device count to standard output
* Implement printing out of device attributes retrieved by hipDeviceGetAttribute.
* Implement printing of device properties retrieved by hipGetDeviceProperties.
2022-09-26 13:46:38 +05:30
Mirza Halilčević 109af3fe8c EXSWHTEC-4 - Implement printing of certain device information (#2884)
* Implement printing out of device count to standard output
* Implement printing out of device attributes retrieved by hipDeviceGetAttribute.
* Implement printing of device properties retrieved by hipGetDeviceProperties.

[ROCm/hip commit: 8cb701166d]
2022-09-26 13:46:38 +05:30
Mirza Halilčević 8cb701166d EXSWHTEC-4 - Implement printing of certain device information (#2884)
* Implement printing out of device count to standard output
* Implement printing out of device attributes retrieved by hipDeviceGetAttribute.
* Implement printing of device properties retrieved by hipGetDeviceProperties.
2022-09-26 13:46:38 +05:30
nives-vukovic 5ce32f14ab EXSWHTEC-37 - Expand tests for hipStreamQuery (#2921)
- Add testing for null stream in Unit_hipStreamQuery_WithNoWork
- Add testing for null stream in Unit_hipStreamQuery_WithFinishedWork

[ROCm/hip-tests commit: 4795cc6265]
2022-09-26 11:03:30 +05:30
nives-vukovic 4795cc6265 EXSWHTEC-37 - Expand tests for hipStreamQuery (#2921)
- Add testing for null stream in Unit_hipStreamQuery_WithNoWork
- Add testing for null stream in Unit_hipStreamQuery_WithFinishedWork
2022-09-26 11:03:30 +05:30
nives-vukovic f90f92fd1e EXSWHTEC-37 - Expand tests for hipStreamQuery (#2921)
- Add testing for null stream in Unit_hipStreamQuery_WithNoWork
- Add testing for null stream in Unit_hipStreamQuery_WithFinishedWork

[ROCm/hip commit: 4afc7866b5]
2022-09-26 11:03:30 +05:30
nives-vukovic 4afc7866b5 EXSWHTEC-37 - Expand tests for hipStreamQuery (#2921)
- Add testing for null stream in Unit_hipStreamQuery_WithNoWork
- Add testing for null stream in Unit_hipStreamQuery_WithFinishedWork
2022-09-26 11:03:30 +05:30
nives-vukovic 2570d7501b EXSWHTEC-24 - Fix issues and refactor code in Stream Management tests (#2916)
- Fix bug in calculation of normal priority in Unit_hipStreamGetPriority_StreamsWithCUMask tests
- Delete duplicate test Unit_hipStreamGetPriority_InvalidPriorityPointer
- Separate Unit_hipStreamAddCallback_ParamTst into positive and negative test
- Remove Unit_hipStreamDestroy_Negative_DoubleDestroy test for Nvidia devices due to error

[ROCm/hip-tests commit: 968e21cd1f]
2022-09-26 11:03:18 +05:30
nives-vukovic 968e21cd1f EXSWHTEC-24 - Fix issues and refactor code in Stream Management tests (#2916)
- Fix bug in calculation of normal priority in Unit_hipStreamGetPriority_StreamsWithCUMask tests
- Delete duplicate test Unit_hipStreamGetPriority_InvalidPriorityPointer
- Separate Unit_hipStreamAddCallback_ParamTst into positive and negative test
- Remove Unit_hipStreamDestroy_Negative_DoubleDestroy test for Nvidia devices due to error
2022-09-26 11:03:18 +05:30