Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

os environ select defaut gpu

# The problem was caused by not setting the CUDA_VISIBLE_DEVICES variable within the shell correctly.
# To specify CUDA device 1 for example, you would set the CUDA_VISIBLE_DEVICES using
export CUDA_VISIBLE_DEVICES=1

# or
CUDA_VISIBLE_DEVICES=1 ./cuda_executable

# The former sets the variable for the life of the current shell, the latter only for the lifespan of that particular executable invocation.
# If you want to specify more than one device, use
export CUDA_VISIBLE_DEVICES=0,1

# or
CUDA_VISIBLE_DEVICES=0,1 ./cuda_executable
Comment

PREVIOUS NEXT
Code Example
Shell :: sveltekit normalize css 
Shell :: check if xacro works ros 
Shell :: change gunicor port and to https 
Shell :: create local branch to track remote 
Shell :: git reset to a file 
Shell :: sudoers nopasswd 
Shell :: force logrotate linux 
Shell :: how to enable autocomplete in jupyter notebook 
Shell :: Port 80 in use by "Unable to open process" with PID 4! 
Shell :: archlinux install chrome 
Shell :: how to install cmatrix 
Shell :: borrar una rama git 
Shell :: apache config location 
Shell :: command separate words into lines 
Shell :: change remote git url 
Shell :: ionic 4 install bootstrap 
Shell :: trojitá ubuntu 
Shell :: bitnami lamp restart apache 
Shell :: git stash drop item by number 
Shell :: error: RPC failed; curl 56 LibreSSL SSL_read: Connection reset by peer, errno 54 
Shell :: yarn test only one file 
Shell :: git reset fork 
Shell :: force delete folder 
Shell :: check owner of process id linux 
Shell :: ubuntu apache2 command 
Shell :: getkirby install editor 
Shell :: vs code list all extensions 
Shell :: git fetch specific branch 
Shell :: Trouble installing Virtualbox Guest Addtions in LM 19.3 VM 
Shell :: how to follow a file url in vim 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =