NVIDIAGameWorks / Falcor

Real-Time Rendering Framework
https://developer.nvidia.com/falcor
Other
2.71k stars 496 forks source link

script for test_pytorch #376

Closed ayclove closed 1 year ago

ayclove commented 1 year ago

OS : Windows 10 GPU: RTX 3090 Ti Driver: 536.40 Configure preset: windows-vs2022


I get module import error (torch) when loading test_pytorch script in Mogwai. Is there any way for Mogwai to refer any virtual environment? I would appreciate If you can show me any example regarding this.

skallweitNV commented 1 year ago

Yes, it is supported but we haven't added documentation yet as all of this is still in very early stages. Basically what you want to do is set the FALCOR_USE_SYSTEM_PYTHON option in cmake and run cmake from a shell that has your virtualenv set up. This will make cmake pick up the correct Python binaries and compile for that environment.

ayclove commented 1 year ago

Thanks for the tip. I confirmed that it is working fine as you suggested.