File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 cmake -G Ninja \
4545 -DCOMPUTE_BACKEND=hip \
4646 -DBNB_ROCM_ARCH=" ${bnb_rocm_arch} " \
47- -DCMAKE_BUILD_TYPE=Release \
47+ -DCMAKE_BUILD_TYPE=MinSizeRel \
48+ -DCMAKE_HIP_FLAGS=" --offload-compress" \
4849 -S .
49- cmake --build . --config Release
50+ cmake --build .
5051fi
5152
5253output_dir=" output/${build_os} /${build_arch} "
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ if(WIN32 AND COMPUTE_BACKEND STREQUAL "hip")
3838 "${ROCM_PATH} /lib/llvm/amdgcn/bitcode"
3939 NO_DEFAULT_PATH
4040 )
41- set ( CMAKE_HIP_FLAGS "--rocm-path=${ROCM_PATH} " )
41+ string ( APPEND CMAKE_HIP_FLAGS " --rocm-path=${ROCM_PATH} " )
4242 if (ROCM_DEVICE_LIB_PATH)
43- set ( CMAKE_HIP_FLAGS "${CMAKE_HIP_FLAGS} --rocm-device-lib-path=${ROCM_DEVICE_LIB_PATH} " )
43+ string ( APPEND CMAKE_HIP_FLAGS " --rocm-device-lib-path=${ROCM_DEVICE_LIB_PATH} " )
4444 endif ()
4545 endif ()
4646endif ()
You can’t perform that action at this time.
0 commit comments