File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 24
24
` wp.atomic_max() ` , or ` wp.atomic_min() ` as being written to ([ GH-378 ] ( https://github.com/NVIDIA/warp/issues/378 ) ).
25
25
- Fix for occasional failure to update .meta files into Warp kernel cache on Windows
26
26
- Mark kernel arrays as written to when passed to ` wp.atomic_add() ` or ` wp.atomic_sub() `
27
+ - Fix the OpenGL renderer not being able to run without CUDA ([ GH-344 ] ( https://github.com/NVIDIA/warp/issues/344 ) ).
27
28
28
29
## [ 1.5.0] - 2024-12-02
29
30
Original file line number Diff line number Diff line change @@ -968,6 +968,7 @@ def __init__(
968
968
enable_backface_culling = True ,
969
969
enable_mouse_interaction = True ,
970
970
enable_keyboard_interaction = True ,
971
+ device = None ,
971
972
):
972
973
"""
973
974
Args:
@@ -997,6 +998,7 @@ def __init__(
997
998
enable_backface_culling (bool): Whether to enable backface culling.
998
999
enable_mouse_interaction (bool): Whether to enable mouse interaction.
999
1000
enable_keyboard_interaction (bool): Whether to enable keyboard interaction.
1001
+ device (Devicelike): Where to store the internal data.
1000
1002
1001
1003
Note:
1002
1004
@@ -1040,7 +1042,11 @@ def __init__(
1040
1042
self .render_depth = render_depth
1041
1043
self .enable_backface_culling = enable_backface_culling
1042
1044
1043
- self ._device = wp .get_cuda_device ()
1045
+ if device is None :
1046
+ self ._device = wp .get_preferred_device ()
1047
+ else :
1048
+ self ._device = wp .get_device (device )
1049
+
1044
1050
self ._title = title
1045
1051
1046
1052
self .window = pyglet .window .Window (
You can’t perform that action at this time.
0 commit comments