Emerge-Lab / gpudrive

GPU-acceleration of Nocturne via Madrona
https://arxiv.org/abs/2408.01584
MIT License
233 stars 20 forks source link

How to validate my setup's effieciency? #262

Closed JohnZhan2023 closed 1 month ago

JohnZhan2023 commented 1 month ago

I have gone through the setup process. I run the test and get the following result like: image image So I began to learn the tutorial of ipynb. But when I run the kernel, the kernel is terminated when run the code below:

import gpudrive

from pygpudrive.env.config import SceneConfig
from pygpudrive.env.scene_selector import select_scenes

scene_config = SceneConfig(path="data", num_scenes=1)
sim = gpudrive.SimManager(
    exec_mode=gpudrive.madrona.ExecMode.CUDA, # Specify the execution mode
    gpu_id=0,
    scenes=select_scenes(scene_config),
    params=gpudrive.Parameters(),  # Environment parameters
)

I moved the code to a single py file, and got: image

I found there exits a similar issue and I upgrade my nvcc to 12.2 image

But I am still stuck here, can you help me solve the problem?

JohnZhan2023 commented 1 month ago

I recompile it and solved it!!!!!

daphnecor commented 1 month ago

Hi @JohnZhan2023, I'm glad you were able to solve the problem! Just a reminder for the future: always remember to recompile the C++ code (make ....) whenever you make changes to it.

I'm closing this issue now, but feel free to reach out if you have any other questions!