76333 Commits
Author SHA1 Message Date
ROCm CI Service Account 6414929098 SWDEV-372504 - [catch2][dtest] Added functional tests for the API hipGraphAddMemsetNode() (#159)
Change-Id: I0701a02087feb75d9a878a9edce17cf0ee1b5b53


[ROCm/hip-tests commit: 6ef967abd7]
2023-02-27 20:36:58 -08:00
ROCm CI Service Account 6ef967abd7 SWDEV-372504 - [catch2][dtest] Added functional tests for the API hipGraphAddMemsetNode() (#159)
Change-Id: I0701a02087feb75d9a878a9edce17cf0ee1b5b53
2023-02-27 20:36:58 -08:00
ROCm CI Service Account e9ad9e182c SWDEV-1 - Refactor of cmake files of stream and memory unit tests (#174)
Change-Id: Ie29641be95e7fb2a191f22e5d1e588d6943a430f


[ROCm/hip-tests commit: 1c4285f3df]
2023-02-27 15:55:24 -08:00
ROCm CI Service Account 1c4285f3df SWDEV-1 - Refactor of cmake files of stream and memory unit tests (#174)
Change-Id: Ie29641be95e7fb2a191f22e5d1e588d6943a430f
2023-02-27 15:55:24 -08:00
ROCm CI Service Account df0cbb7676 SWDEV-345188 - hip-tests size_t to unsigned long warning (#175)
Change-Id: Id315ba0de6900f714190a09ac09c977830360c72


[ROCm/hip-tests commit: 0a8235e5c8]
2023-02-27 15:54:39 -08:00
ROCm CI Service Account 0a8235e5c8 SWDEV-345188 - hip-tests size_t to unsigned long warning (#175)
Change-Id: Id315ba0de6900f714190a09ac09c977830360c72
2023-02-27 15:54:39 -08:00
ROCm CI Service Account a5d36d28fb SWDEV-326250 - Adding new set 1 of test cases to test compiler flag -fgpu-default-stream=per-thread (#176)
Change-Id: I1a13ebdf366913ce938b3891cfdc549c6c618569


[ROCm/hip-tests commit: 798c4e7255]
2023-02-27 15:54:03 -08:00
ROCm CI Service Account 798c4e7255 SWDEV-326250 - Adding new set 1 of test cases to test compiler flag -fgpu-default-stream=per-thread (#176)
Change-Id: I1a13ebdf366913ce938b3891cfdc549c6c618569
2023-02-27 15:54:03 -08:00
ROCm CI Service Account dd1cbf1c85 SWDEV-381577 Fix access pattern of graph test - this should stop random failures on CI (#178)
Change-Id: I39026a948ed967d381f4ee10711840128a2f6f83


[ROCm/hip-tests commit: a160e355d6]
2023-02-27 15:53:24 -08:00
ROCm CI Service Account a160e355d6 SWDEV-381577 Fix access pattern of graph test - this should stop random failures on CI (#178)
Change-Id: I39026a948ed967d381f4ee10711840128a2f6f83
2023-02-27 15:53:24 -08:00
ROCm CI Service Account d6cc90111b SWDEV-383385 - Add hipStreamSynchronize and free device mem. (#179)
Change-Id: I43e34ae7af80de06224ce331d6ba41d9280a1661


[ROCm/hip-tests commit: c24f4cc158]
2023-02-27 15:52:48 -08:00
ROCm CI Service Account c24f4cc158 SWDEV-383385 - Add hipStreamSynchronize and free device mem. (#179)
Change-Id: I43e34ae7af80de06224ce331d6ba41d9280a1661
2023-02-27 15:52:48 -08:00
ROCm CI Service Account 20d7cbac2d SWDEV-366636 - Fix test timing issue (#182)
Change-Id: I7de327adc59516f5d32a8861c7810f28a5c3d22b


[ROCm/hip-tests commit: 72bffc7b27]
2023-02-27 15:52:10 -08:00
ROCm CI Service Account 72bffc7b27 SWDEV-366636 - Fix test timing issue (#182)
Change-Id: I7de327adc59516f5d32a8861c7810f28a5c3d22b
2023-02-27 15:52:10 -08:00
ROCm CI Service Account 80c62e3b2e SWDEV-384100 - skip building failing texture tests for CUDA 12.0 (#181)
Change-Id: Ie861d63b0525661ff64ad148e5a0151bbce7db2c

[ROCm/hip-tests commit: df20298706]
2023-02-27 15:51:15 -08:00
ROCm CI Service Account df20298706 SWDEV-384100 - skip building failing texture tests for CUDA 12.0 (#181)
Change-Id: Ie861d63b0525661ff64ad148e5a0151bbce7db2c
2023-02-27 15:51:15 -08:00
Bill(Shuzhou) Liu 06028876b0 mem_use_pct uninitialized error
Initialize mem_use_pct if the memory info is not available.

Change-Id: Id8e285050149c51077356826c8f99719b473060d


[ROCm/rocm_smi_lib commit: fcb6afa289]
2023-02-27 16:47:45 -06:00
Bill(Shuzhou) Liu fcb6afa289 mem_use_pct uninitialized error
Initialize mem_use_pct if the memory info is not available.

Change-Id: Id8e285050149c51077356826c8f99719b473060d
2023-02-27 16:47:45 -06:00
Bill(Shuzhou) Liu f3b32d05df mem_use_pct uninitialized error
Initialize mem_use_pct if the memory info is not available.

Change-Id: Id8e285050149c51077356826c8f99719b473060d


[ROCm/amdsmi commit: fcb6afa289]
2023-02-27 16:47:45 -06:00
coleramos425 55b4a2533e Option for different markers per kernel name
Signed-off-by: coleramos425 <colramos@amd.com>


[ROCm/rocprofiler-compute commit: 27fa97aad9]
2023-02-27 16:18:42 -06:00
coleramos425 27fa97aad9 Option for different markers per kernel name
Signed-off-by: coleramos425 <colramos@amd.com>
2023-02-27 16:18:42 -06:00
Sourabh Betigeri 1932e88970 SWDEV-326798 - Changes in stream sync behavior
Change-Id: If6d0b3876a9bf197c7e49273eaa5ca5bfae46d0b


[ROCm/clr commit: 51adec2730]
2023-02-27 16:48:14 -05:00
Sourabh Betigeri 51adec2730 SWDEV-326798 - Changes in stream sync behavior
Change-Id: If6d0b3876a9bf197c7e49273eaa5ca5bfae46d0b
2023-02-27 16:48:14 -05:00
sdashmiz bab487caa8 SWDEV-382838 - inetrmittent failure
- test fails intermittently because object is not cleared correctly

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I88daf3dc08bb83d6d3f047ff48a63c8f856fb0bf


[ROCm/clr commit: a69db9b426]
2023-02-27 16:23:04 -05:00
sdashmiz a69db9b426 SWDEV-382838 - inetrmittent failure
- test fails intermittently because object is not cleared correctly

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I88daf3dc08bb83d6d3f047ff48a63c8f856fb0bf
2023-02-27 16:23:04 -05:00
Felix Kuehling e5ab87ede7 kfdtest: Add test for hsaKmtExportDMABufHandle
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Change-Id: Ia87377c1d4201fecfa00c2e0ca53b507608df2b3
2023-02-27 14:44:11 -05:00
Felix Kuehling ecf502f50d kfdtest: Add test for hsaKmtExportDMABufHandle
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Change-Id: Ia87377c1d4201fecfa00c2e0ca53b507608df2b3


[ROCm/ROCR-Runtime commit: e5ab87ede7]
2023-02-27 14:44:11 -05:00
Felix Kuehling 332f59eb2a libhsakmt: Implement dmabuf export for RDMA
Implement hsaKmtExportDMABufHandle, which can be used for a new
upstreamable RDMA solution. It exports a DMABuf handle for an arbitrary
virtual address along with the offset of the address within the
allocation. It also checks that the size of the intended export does
not exceed the allocation.

This uses the new AMDKFD_IOC_EXPORT_DMABUF, which requires KFD ioctl
API version 1.12.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Change-Id: Ie5fdb1f73ab3c7fa36c315ce326b1fb89eacc8b6
2023-02-27 14:44:11 -05:00
Felix Kuehling caf8b70da7 libhsakmt: Implement dmabuf export for RDMA
Implement hsaKmtExportDMABufHandle, which can be used for a new
upstreamable RDMA solution. It exports a DMABuf handle for an arbitrary
virtual address along with the offset of the address within the
allocation. It also checks that the size of the intended export does
not exceed the allocation.

This uses the new AMDKFD_IOC_EXPORT_DMABUF, which requires KFD ioctl
API version 1.12.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Change-Id: Ie5fdb1f73ab3c7fa36c315ce326b1fb89eacc8b6


[ROCm/ROCR-Runtime commit: 332f59eb2a]
2023-02-27 14:44:11 -05:00
AravindanC 5019a364c8 SWDEV-351540 - ASAN packaging for roctracer
Change-Id: If23c92e785fbbeb27034a8958568dd86b847beed


[ROCm/roctracer commit: 4edc9727bd]
2023-02-27 11:32:39 -08:00
AravindanC 4edc9727bd SWDEV-351540 - ASAN packaging for roctracer
Change-Id: If23c92e785fbbeb27034a8958568dd86b847beed
2023-02-27 11:32:39 -08:00
Jonathan R. Madsen 49851b05ae Address and thread sanitizer fixes (#250)
* Address and thread sanitizer fixes

- Fix compilation with clang
- Tweak perfetto copy to build tree
- Added suppression files to scripts
- fix LD_PRELOAD support in omnitrace-causal and omnitrace-sample
- use spin_mutex and spin_lock from timemory instead of atomic_mutex and atomic_lock
- state uses atomic
- fix some memory leaks
- tweak testing
  - mpi tests do not use preload
  - increase timeout when using sanitizers
  - add env LD_PRELOAD when using sanitizers

* Tweak perfetto build

* Update timemory submodule

* Update version to 1.8.1

* Update omnitrace-leak.supp

* Update timemory submodule

- fixed spin_mutex implementation

* Remove previously added addr_space->allowTraps(instr_traps)

- this appears to cause errors during binary rewrite

* causal testing updates

- relaxed causal validation on CI systems (to account for hyperthreading decreasing prediction)
- improved impact calculation
- other general improvements to validate-causal-json.py

* Improve fork handling for perfetto

- numerous updates changing perfetto:: to ::perfetto::
- added perfetto_fwd.hpp

* Updated fork example

- user API for validation that stopping/starting perfetto is valid

* Misc fixes to perfetto + fork support

- tweak regions in fork example
- handle disabling tmp files
- get rid of stop/start with perfetto before/after fork
- fixed sampling support during fork
- tweak env of fork test

* Fix find_package in build-tree

* Fix buildtree export

* Fix buildtree export

* Restructured ConfigInstall before adding examples

* Guard against creating tmp file in sampling when disabled

* Fix buildtree package

* formatting

* exit handlers on child processes

- quick exit to avoid perfetto cleanup

* Further tweaking of causal tests for reliability

- enable PROCESSOR_AFFINITY
- decrease to 5 iterations

* Further tweaking of causal tests for reliability

- disable PROCESSOR_AFFINITY for fast func e2e tests
- enabling affinity results in (valid) speedup predictions greater than zero

* Fixes to fork handling

- use pthread_atfork for redundancy if fork_gotcha fails

* cmake formatting

* Fix fork init settings + install components

- remove dl from PROJECT_BUILD_TARGETS

* Testing tweaks

- fix mpi-binary-rewrite-run regex when OMNITRACE_VERBOSE set > 1 in env
- increase causal e2e iterations to 8

* Fix "Test User API"

- test-find-package.sh included dl component

* Further tweaks to causal validation

- further considerations of variance

[ROCm/rocprofiler-systems commit: 846301bcaf]
2023-02-27 12:09:03 -06:00
Jonathan R. Madsen 846301bcaf Address and thread sanitizer fixes (#250)
* Address and thread sanitizer fixes

- Fix compilation with clang
- Tweak perfetto copy to build tree
- Added suppression files to scripts
- fix LD_PRELOAD support in omnitrace-causal and omnitrace-sample
- use spin_mutex and spin_lock from timemory instead of atomic_mutex and atomic_lock
- state uses atomic
- fix some memory leaks
- tweak testing
  - mpi tests do not use preload
  - increase timeout when using sanitizers
  - add env LD_PRELOAD when using sanitizers

* Tweak perfetto build

* Update timemory submodule

* Update version to 1.8.1

* Update omnitrace-leak.supp

* Update timemory submodule

- fixed spin_mutex implementation

* Remove previously added addr_space->allowTraps(instr_traps)

- this appears to cause errors during binary rewrite

* causal testing updates

- relaxed causal validation on CI systems (to account for hyperthreading decreasing prediction)
- improved impact calculation
- other general improvements to validate-causal-json.py

* Improve fork handling for perfetto

- numerous updates changing perfetto:: to ::perfetto::
- added perfetto_fwd.hpp

* Updated fork example

- user API for validation that stopping/starting perfetto is valid

* Misc fixes to perfetto + fork support

- tweak regions in fork example
- handle disabling tmp files
- get rid of stop/start with perfetto before/after fork
- fixed sampling support during fork
- tweak env of fork test

* Fix find_package in build-tree

* Fix buildtree export

* Fix buildtree export

* Restructured ConfigInstall before adding examples

* Guard against creating tmp file in sampling when disabled

* Fix buildtree package

* formatting

* exit handlers on child processes

- quick exit to avoid perfetto cleanup

* Further tweaking of causal tests for reliability

- enable PROCESSOR_AFFINITY
- decrease to 5 iterations

* Further tweaking of causal tests for reliability

- disable PROCESSOR_AFFINITY for fast func e2e tests
- enabling affinity results in (valid) speedup predictions greater than zero

* Fixes to fork handling

- use pthread_atfork for redundancy if fork_gotcha fails

* cmake formatting

* Fix fork init settings + install components

- remove dl from PROJECT_BUILD_TARGETS

* Testing tweaks

- fix mpi-binary-rewrite-run regex when OMNITRACE_VERBOSE set > 1 in env
- increase causal e2e iterations to 8

* Fix "Test User API"

- test-find-package.sh included dl component

* Further tweaks to causal validation

- further considerations of variance
2023-02-27 12:09:03 -06:00
Charis Poag 5c3a3f3641 [SWDEV-335697] Add RSMI_STATUS_SETTING_UNAVAILABLE for dynamic partition
Updates:
    * Added RSMI_STATUS_SETTING_UNAVAILABLE for
      rsmi_dev_compute_partition_set - gives users
      better error output when attempting to set
      compute partition to values not listed in
      available_compute_partition SYSFS
    * Updated python --setcomputepartition to
      provide better output when receiving
      RSMI_STATUS_SETTING_UNAVAILABLE
    * Updated all test & example files to check for
      RSMI_STATUS_SETTING_UNAVAILABLE when doing
      rsmi_dev_compute_partition_set

Change-Id: Ida5d54880d9b9b6e4a0468cdb962fdc0c18d6257
Signed-off-by: Charis Poag <Charis.Poag@amd.com>


[ROCm/rocm_smi_lib commit: 0d3558945b]
2023-02-27 11:17:44 -06:00
Charis Poag 0d3558945b [SWDEV-335697] Add RSMI_STATUS_SETTING_UNAVAILABLE for dynamic partition
Updates:
    * Added RSMI_STATUS_SETTING_UNAVAILABLE for
      rsmi_dev_compute_partition_set - gives users
      better error output when attempting to set
      compute partition to values not listed in
      available_compute_partition SYSFS
    * Updated python --setcomputepartition to
      provide better output when receiving
      RSMI_STATUS_SETTING_UNAVAILABLE
    * Updated all test & example files to check for
      RSMI_STATUS_SETTING_UNAVAILABLE when doing
      rsmi_dev_compute_partition_set

Change-Id: Ida5d54880d9b9b6e4a0468cdb962fdc0c18d6257
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2023-02-27 11:17:44 -06:00
Charis Poag ff26973e15 [SWDEV-335697] Add RSMI_STATUS_SETTING_UNAVAILABLE for dynamic partition
Updates:
    * Added RSMI_STATUS_SETTING_UNAVAILABLE for
      rsmi_dev_compute_partition_set - gives users
      better error output when attempting to set
      compute partition to values not listed in
      available_compute_partition SYSFS
    * Updated python --setcomputepartition to
      provide better output when receiving
      RSMI_STATUS_SETTING_UNAVAILABLE
    * Updated all test & example files to check for
      RSMI_STATUS_SETTING_UNAVAILABLE when doing
      rsmi_dev_compute_partition_set

Change-Id: Ida5d54880d9b9b6e4a0468cdb962fdc0c18d6257
Signed-off-by: Charis Poag <Charis.Poag@amd.com>


[ROCm/amdsmi commit: 0d3558945b]
2023-02-27 11:17:44 -06:00
ROCm CI Service Account e4594b8822 SWDEV-330658 - Added flag hipHostRegisterReadOnly (#3173)
Change-Id: Ic011ce473f5988ca92a44a939adc82e6c8ee6130

[ROCm/hip commit: 76efd52f1e]
2023-02-27 10:26:15 +05:30
ROCm CI Service Account 76efd52f1e SWDEV-330658 - Added flag hipHostRegisterReadOnly (#3173)
Change-Id: Ic011ce473f5988ca92a44a939adc82e6c8ee6130
2023-02-27 10:26:15 +05:30
Yifan Zhang e40ae8481e kfdtest: Using non-paged memory allocation only on devices that have MES scheduler
Change-Id: I9181b353aac791f546aa7679ffd7cb8d9f8ef765
2023-02-27 10:32:15 +08:00
Yifan Zhang 92a336d485 kfdtest: Using non-paged memory allocation only on devices that have MES scheduler
Change-Id: I9181b353aac791f546aa7679ffd7cb8d9f8ef765


[ROCm/ROCR-Runtime commit: e40ae8481e]
2023-02-27 10:32:15 +08:00
Yifan Zhang 564913526a kfdtest: add MES judging API in test utility.
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Change-Id: I978fc85b7c81ea65b97953a50d2d0312bcba95bf
2023-02-26 21:22:39 -05:00
Yifan Zhang 8554f0df14 kfdtest: add MES judging API in test utility.
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Change-Id: I978fc85b7c81ea65b97953a50d2d0312bcba95bf


[ROCm/ROCR-Runtime commit: 564913526a]
2023-02-26 21:22:39 -05:00
Jenkins 308e9bec53 Merge 'develop' into 'amd-staging'
Change-Id: Id0b572c9e7478aaec14481194a88f9c6f74110d1


[ROCm/hip-tests commit: e4c6d56d8b]
2023-02-27 00:10:30 +00:00
Jenkins e4c6d56d8b Merge 'develop' into 'amd-staging'
Change-Id: Id0b572c9e7478aaec14481194a88f9c6f74110d1
2023-02-27 00:10:30 +00:00
Jenkins 7614cd76be SWDEV-299127 - Merge 'develop' into 'amd-staging'
Change-Id: I1838505a01873cab03ebc4eb73d89fb0e2592b6b


[ROCm/hip commit: 88af68fe12]
2023-02-27 00:10:26 +00:00
Jenkins 88af68fe12 SWDEV-299127 - Merge 'develop' into 'amd-staging'
Change-Id: I1838505a01873cab03ebc4eb73d89fb0e2592b6b
2023-02-27 00:10:26 +00:00
Pedram Alizadeh ed7707fa1b Adding -pthread flag for linking issues into src/Makefile (#30)
* Adding -pthread flag for linking issues into src/Makefile

* Adding -pthread flag for linking issues into CMakeLists.txt

[ROCm/rccl-tests commit: 5275aa5715]
2023-02-24 21:39:04 -05:00
Pedram Alizadeh 5275aa5715 Adding -pthread flag for linking issues into src/Makefile (#30)
* Adding -pthread flag for linking issues into src/Makefile

* Adding -pthread flag for linking issues into CMakeLists.txt
2023-02-24 21:39:04 -05:00
Saleel Kudchadker 981dc31e20 SWDEV-380035 - Do not create Arena Memobj for pinned memory
Change-Id: I4da281f0b7139efb4bb46b47f812358a0212445a


[ROCm/clr commit: d429314b21]
2023-02-24 12:31:25 -08:00
Saleel Kudchadker d429314b21 SWDEV-380035 - Do not create Arena Memobj for pinned memory
Change-Id: I4da281f0b7139efb4bb46b47f812358a0212445a
2023-02-24 12:31:25 -08:00