most of the time spent by devs is to ensure there is no standard way of passing flags - I have no idea why

This commit is contained in:
Donato Capitella
2026-02-23 12:08:57 +00:00
parent fedfa3c682
commit f968cb1f30
+5 -1
View File
@@ -70,7 +70,11 @@ ENV CXX="/opt/rocm/llvm/bin/clang++"
RUN export HIP_DEVICE_LIB_PATH=$(find /opt/rocm -type d -name bitcode -print -quit) && \ RUN export HIP_DEVICE_LIB_PATH=$(find /opt/rocm -type d -name bitcode -print -quit) && \
echo "Compiling with Bitcode: $HIP_DEVICE_LIB_PATH" && \ echo "Compiling with Bitcode: $HIP_DEVICE_LIB_PATH" && \
export CMAKE_ARGS="-DROCM_PATH=/opt/rocm -DHIP_PATH=/opt/rocm -DAMDGPU_TARGETS=gfx1151 -DHIP_ARCHITECTURES=gfx1151 -DCMAKE_CXX_FLAGS='-mllvm --amdgpu-unroll-threshold-local=600' -DCMAKE_HIP_FLAGS='-mllvm --amdgpu-unroll-threshold-local=600'" && \ export CXXFLAGS="-mllvm --amdgpu-unroll-threshold-local=600" && \
export CFLAGS="-mllvm --amdgpu-unroll-threshold-local=600" && \
export HIPFLAGS="-mllvm --amdgpu-unroll-threshold-local=600" && \
export HIPCXXFLAGS="-mllvm --amdgpu-unroll-threshold-local=600" && \
export CMAKE_ARGS="-DROCM_PATH=/opt/rocm -DHIP_PATH=/opt/rocm -DAMDGPU_TARGETS=gfx1151 -DHIP_ARCHITECTURES=gfx1151" && \
python -m pip wheel --no-build-isolation --no-deps -w /tmp/dist -v . && \ python -m pip wheel --no-build-isolation --no-deps -w /tmp/dist -v . && \
python -m pip install /tmp/dist/*.whl python -m pip install /tmp/dist/*.whl