Use rocm_agent_enumerator to determine GPU

This commit is contained in:
deftdawg 2023-04-25 04:57:40 +00:00
parent f49686029a
commit a2b6e49d26

View File

@ -16,7 +16,7 @@ In `Makefile`:
# activate your VENV, if using this within a VENV
git clone https://git.ecker.tech/mrq/bitsandbytes-rocm
make hip
CUDA_VERSION=gfx1030 python setup.py install # assumes you're using a 6XXX series card
CUDA_VERSION=`rocm_agent_enumerator -t GPU | sort -t 'x' -k 2n | tail -1` python setup.py install # assumes you're using a 6XXX series card
python3 -m bitsandbytes # to validate it works
```