Skip to content

Commit 215e928

Browse files
committed
ROCm: enable unified memory on Instinct GPUs
1 parent c9e7669 commit 215e928

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rocm-flags.file

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# define the ROCm compilation flags in a way that can be shared by SCRAM-based and regular tools
33

44
# build support for Instinct MI100 (gfx908), Instinct MI210/MI250X (gfx90a), Instinct MI300X (gfx942), Radeon Pro W6800 (gfx1030), Radeon Pro W7800/W7900 (gfx1100), and Radeon Pro W7600 (gfx1102)
5-
%define rocm_archs gfx908:sramecc+:xnack- gfx90a:sramecc+:xnack- gfx942:sramecc+:xnack- gfx1030 gfx1100 gfx1102
5+
%define rocm_archs gfx908:sramecc+ gfx90a:sramecc+ gfx942:sramecc+ gfx1030 gfx1100 gfx1102
66

77
# LLVM/hipcc style for listing the supported ROCm compute architectures
88
%define hipcc_flags_rocm_archs %(echo $(for ARCH in %rocm_archs; do echo "--offload-arch=$ARCH"; done))

scram-tools.file/tools/rocm/rocm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@
2323
<flags SYSTEM_INCLUDE="1"/>
2424
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path" join="1"/>
2525
<runtime name="PATH" value="$ROCM_BASE/bin" type="path"/>
26+
<runtime name="HSA_XNACK" value="1"/>
2627
<use name="fmt"/>
2728
</tool>

0 commit comments

Comments
 (0)