Fix deep learning GPU
This commit is contained in:
parent
d8559197c7
commit
c3303a9842
11
env.nu
11
env.nu
|
@ -252,9 +252,6 @@ $env.RUST_BACKTRACE = full
|
|||
$env.GCLONE_PATH = $env.HOME + '/git'
|
||||
$env.GCLONE_FORCE_SSH = true
|
||||
|
||||
# Python virtual env
|
||||
$env.VIRTUAL_ENV = $env.HOME + '/.venv'
|
||||
|
||||
# Don't put ugly go directory in my home
|
||||
$env.GOPATH = $env.HOME + '/.go'
|
||||
|
||||
|
@ -262,6 +259,7 @@ $env.GOPATH = $env.HOME + '/.go'
|
|||
# $env.PATH = ($env.PATH | split row (char esep) | prepend '/some/path')
|
||||
$env.PATH = ($env.PATH
|
||||
| split row (char esep)
|
||||
| prepend ('/opt/cuda/bin')
|
||||
| prepend ($env.HOME + '/.config/polymny/bin')
|
||||
| prepend ($env.HOME + '/.config/dotfiles/bin')
|
||||
| prepend ($env.HOME + '/.config/dotfiles/bin-extra')
|
||||
|
@ -270,6 +268,13 @@ $env.PATH = ($env.PATH
|
|||
| prepend ($env.HOME + '/.venv/bin')
|
||||
)
|
||||
|
||||
# Deep learning on GPU
|
||||
$env.XLA_FLAGS = '--xla_gpu_cuda_data_dir=/opt/cuda'
|
||||
|
||||
# Python virtual env
|
||||
$env.VIRTUAL_ENV = $env.HOME + '/.venv'
|
||||
|
||||
|
||||
$env.XDG_SESSION_TYPE = if (tty | str starts-with "/dev/pts") {
|
||||
"x11"
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue