coreos - In docker, how can I pass through all found nvidia devices to a container? -


i'm netbooting coreos nvidia , want pass through container found nvidia devices.

how do command line when machines have more gpu cards others.

i.e. i'd like:

docker run --name cuda_app --devices=/dev/nvidia*:/dev/nvidia* cuda_app 

on machines, there /dev/nvidia0 - 2, on others nvidia0 - 8 example.

you generate list of device expose using inlined bash script

docker run --name cuda_app $(for dev in /dev/nvidia*; echo -n "--device $dev:$dev "; done) cuda_app 

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -