If you’re getting that -cpu XLA, that’s the wrong version if you want CUDA.
For installing with mix, exporting the proper variables should suffice. I recommend nuking the .cache/xla directory, as well as _build and cache just so that you’re starting fresh after all config changes