HIPRT-Path-Tracer icon indicating copy to clipboard operation
HIPRT-Path-Tracer copied to clipboard

First time run error

Open shanu1195 opened this issue 10 months ago • 5 comments

[INFO] HIPRT ver.02004 [INFO] Executing on 'NVIDIA GeForce RTX 4080 GPU'

[ERR ] Could not generate additional cache key for kernel with path "../src/Device/kernels/Utils/RayVolumeStateSize.h": No such file or directory

how do i solve this.

shanu1195 avatar Mar 08 '25 11:03 shanu1195

Hi @shanu1195 ,

Where are you running the application from? I suspect you're not in the proper working directory maybe? So ../src/Device/kernels/Utils/RayVolumeStateSize.h does not exist.

Things should be running fine from the build/ directory.

TomClabault avatar Mar 08 '25 12:03 TomClabault

Vs 2022 generate the cmake build as out/build/x64-Debug/ all the files plus exe could this be somehow the issue ../src/Device/kernels/Utils/RayVolumeStateSize.h the location from the root cmake list is correct to the header file.

shanu1195 avatar Mar 08 '25 17:03 shanu1195

How did you run the CMake build to generate the Visual Studio solution? I'm not sure there should be a out folder being created.

Did you create a build folder (at the root of the repo, next to the CMakeLists.txt) and used cmake .. from inside the build folder?

TomClabault avatar Mar 08 '25 18:03 TomClabault

yes it get created but its under out/build/x64-debug/here lies the exe and binary files. Yes i followed all the steps and the compile went successful. Although i use this method i open the cmake project by right clicking in the project root folder and selecting open with vs2022 i usually use this. I ll try use the default process to compile the whole process again see if that fixes thing.

shanu1195 avatar Mar 08 '25 20:03 shanu1195

Yeah I think for the project to work right now, you should have a file structure that looks like this:

HIPRT-Path-Tracer/
├─ build/
│  ├─ .../
├─ CMakeLists.txt

I found a way to have the project work from any directory but HIPRT itself still have issues because some paths are hardcoded in the HIPRT library. I think this was fixed upstream but I'd have to update my repo. I still haven't done that yet.

TomClabault avatar Mar 08 '25 23:03 TomClabault