Created
August 14, 2025 05:29
-
-
Save ugovaretto/1a32b7a9b2b36cbd4939336acf3dd5fd to your computer and use it in GitHub Desktop.
link bitcode files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#linking bitcode files to files in the current directory is required for JAX to work | |
#with ROCm | |
if [ "$#" -eq 0 ]; then | |
echo "Usage: $0 <path to bitcode files, e.g. /opt/rocm-6.4/llvm/amdgcn/bitcode>" | |
exit 1 # Exit with a non-zero status to indicate an error | |
fi | |
BCPATH=$1 | |
ln -s $BCPATH/opencl.bc ./opencl.bc | |
ln -s $BCPATH/ockl.bc ./ockl.bc | |
ln -s $BCPATH/ocml.bc ./ocml.bc | |
ln -s $BCPATH/oclc_finite_only_off.bc ./oclc_finite_only_off.bc | |
ln -s $BCPATH/oclc_daz_opt_off.bc ./oclc_daz_opt_off.bc | |
ln -s $BCPATH/oclc_correctly_rounded_sqrt_on.bc ./oclc_correctly_rounded_sqrt_on.bc | |
ln -s $BCPATH/oclc_unsafe_math_off.bc ./oclc_unsafe_math_off.bc | |
ln -s $BCPATH/oclc_wavefrontsize64_on.bc ./oclc_wavefrontsize64_on.bc | |
ln -s $BCPATH/oclc_abi_version_500.bc ./oclc_abi_version_500.bc | |
#ln -s $BCPATH/oclc_isa_version_1151.bc ./oclc_isa_version_1151.bc | |
ln -s $BCPATH/oclc_isa_version_1100.bc ./oclc_isa_version_1100.bc | |
# in case gfx1151 is not supported by the runtime (e.g. jax) | |
# link to 1100 and 'export HSA_OVERRIDDE_GFX_VERSION=11.0.0.0' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment