Skip to content

Commit cc06610

Browse files
committed
Docker: Fixed build args for rocm GFX target
This was an issue hwen building against a GFX target that doesn't match the curent one (e.g. in Docker without exposing the GPU). See leejet#843
1 parent 8435982 commit cc06610

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile.rocm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ RUN mkdir -p build \
2323
-DSD_HIPBLAS=ON \
2424
-DCMAKE_BUILD_TYPE=Release \
2525
-DGPU_TARGETS=$GFX_NAME \
26+
-DAMDGPU_TARGETS=$GFX_NAME \
2627
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
28+
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
2729
&& cmake --build . --config Release
2830

2931
FROM rocm/dev-ubuntu-${UBUNTU_VERSION}:${ROCM_VERSION}-complete AS runtime

0 commit comments

Comments
 (0)