tracy icon indicating copy to clipboard operation
tracy copied to clipboard

CUDA Support?

Open ExoSkye opened this issue 3 years ago • 6 comments

I know it'd probably be quite an endeavor but would it be possible to add CUDA support? You have OpenCL support and CUDA support would be quite cool

ExoSkye avatar Dec 27 '20 07:12 ExoSkye

Update when I try and use Tracy with CUDA I get linker errors despite having tracy/TracyClient.cpp added to my CMake file and having TRACY_ENABLE turned on

ExoSkye avatar Dec 27 '20 08:12 ExoSkye

After a bit of researching I found that adding set_source_files_properties(tracy/TracyClient.cpp PROPERTIES LANGUAGE CUDA) to my cmake file fixed it

ExoSkye avatar Dec 27 '20 08:12 ExoSkye

I know it'd probably be quite an endeavor but would it be possible to add CUDA support?

I know nothing about CUDA, so I can't even say if this would be feasible.

wolfpld avatar Dec 27 '20 13:12 wolfpld

There is an issue with memory usage measuring that I've outlined here: https://stackoverflow.com/questions/65475276/operator-new-in-cuda-is-always-a-host-device-function

ExoSkye avatar Dec 28 '20 09:12 ExoSkye

@ProtoByter : This issue may be possible to circumvent if Tracey's operator new is also made a __host__ __device__ function - with the device function doing nothing / calling the original operator new / doing something useful.

eyalroz avatar Jul 30 '21 09:07 eyalroz

There seems to be some work towards this being done: https://github.com/wolfpld/tracy/compare/master...bcumming:feature/cuda

wolfpld avatar Nov 30 '21 16:11 wolfpld