Environment variables

Environment variables#

The following table lists the most often used environment variables.

Table 1 ROCR environment variables#

Environment variable

Possible values

Description

HSA_ENABLE_SDMA

  • 0: Disabled

  • 1: Enabled (default)

This controls the use of DMA engines in all copy directions (Host-to-Device, Device-to-Host, Device-to-Device) when using the hsa_​memory_​copy, hsa_​amd_​memory_​fill, hsa_​amd_​memory_​async_​copy, hsa_​amd_​memory_​async_​copy_​on_​engine APIs

HSA_ENABLE_PEER_SDMA

  • 0: Disabled

  • 1: Enabled (default)

This controls the use of DMA engines for Device-to-Device copies when using the hsa_​memory_​copy, hsa_​amd_​memory_​async_​copy, hsa_​amd_​memory_​async_​copy_​on_​engine APIs

Note

The value of HSA_ENABLE_PEER_SDMA is ignored if HSA_ENABLE_SDMA is used to disable the use of DMA engines.