g4dn.xlarge
ami-078a7f1dda72c0775
import bpy
preferences = bpy.context.preferences
cycles_preferences = preferences.addons['cycles'].preferences
cuda_devices, opencl_devices = cycles_preferences.get_devices()
cycles_preferences.compute_device_type = "CUDA"
for device in cuda_devices:
print(f'Activating {device.name}')
device.use = True
nvidia-docker run -ti -v $PWD:/media nytimes/blender:2.80-gpu-ubuntu18.04
blender -b blendfile.blend -o //render_ -P force_gpu.py -f 1