Hi, I tried the sample code of Replicator from the tutorials and got this CUDA error. I checked my OS and hardware driver versions. They should meet the requirements indicated in the tutorials.
My environment is as below.
Software: Isacc SIm 2022.1.0
OS: Ubuntu 20.04
Displayer card:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.73.05 Driver Version: 510.73.05 CUDA Version: 11.6 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... Off | 00000000:17:00.0 Off | N/A |
| 24% 32C P8 32W / 260W | 11MiB / 11264MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 1 NVIDIA GeForce ... Off | 00000000:65:00.0 On | N/A |
| 34% 42C P8 34W / 260W | 549MiB / 11264MiB | 2% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1420 G /usr/lib/xorg/Xorg 4MiB |
| 0 N/A N/A 2169 G /usr/lib/xorg/Xorg 4MiB |
| 1 N/A N/A 1420 G /usr/lib/xorg/Xorg 53MiB |
| 1 N/A N/A 2169 G /usr/lib/xorg/Xorg 278MiB |
| 1 N/A N/A 2299 G /usr/bin/gnome-shell 61MiB |
| 1 N/A N/A 3981 G ...785781292877507092,131072 126MiB |
| 1 N/A N/A 14324 G ...RendererForSitePerProcess 14MiB |
+-----------------------------------------------------------------------------+
Cuda
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Tue_Mar__8_18:18:20_PST_2022
Cuda compilation tools, release 11.6, V11.6.124
Build cuda_11.6.r11.6/compiler.31057947_0
Log file attached.
kit_20220616_162206.log (1.1 MB)
Sample code
import omni.replicator.core as rep
with rep.new_layer():
camera = rep.create.camera(position=(0, 0, 1000))
render_product = rep.create.render_product(camera, (1024, 1024))
def move_shapes():
#shapes = rep.get.prims(path_pattern='[^M_]Cube$|[^M_]Cone$|[^M_]Sphere$')
shapes = rep.get.prims(semantics=[('class', 'cube'), ('class', 'cone')])
with shapes:
rep.modify.pose(
position=rep.distribution.uniform((-500, 50, -500), (500, 50, 500)),
rotation=rep.distribution.uniform((0,-180, 0), (0, 180, 0)),
)
return shapes.node
rep.randomizer.register(move_shapes)
# Setup randomization
with rep.trigger.on_frame(num_frames=100):
rep.randomizer.move_shapes()
writer = rep.WriterRegistry.get("BasicWriter")
writer.initialize(output_dir="_output", rgb=True, bounding_box_2d_tight=True)
writer.attach([render_product])
Should I change my Cuda version? Can you advise? Thanks.