biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / blender / test-cuda.py
blob8a3ec57347592e660c0b30ef1ad149973f3b74dd
1 import bpy
3 preferences = bpy.context.preferences.addons["cycles"].preferences
4 devices = preferences.get_devices_for_type("CUDA")
5 ids = [d.id for d in devices]
7 assert any("CUDA" in i for i in ids), f"CUDA not present in {ids}"
8 print("CUDA is available")