Replies: 1 comment 1 reply
-
I tried building GPGPU-Sim, but it isn't happening easily. My guess is you want to add the path to GPGPU-Sim's libcuda in the I'm pretty sure it makes sense for us to provide a way to do this in Halide in general so a PR to get a pathname from an environment variable or an API to set the path will likely be a good thing. Patches welcome or at some point I'll finish getting GPGPU built and take care of it. This is assuming the approach I've suggested works. It is attractive to us as another alternative for testing things. |
Beta Was this translation helpful? Give feedback.
-
I have been working on a research project where we investigate the impact of GPU's branch divergence in the setting of Halide.
I don't have an actual GPU on my computer, but I instead have a GPU simulator called GPGPU-Sim. Here are the details of my computing environment:
What I do NOT have on my computer:
What I do have on my computer:
I tried to JIT-compile, for instance, lesson_12_using_the_gpu.cpp from Halide's tutorial using the command
g++ lesson_12_using_the_gpu.cpp -g -std=c++11 -I <path/to/Halide.h> -I <path/to/tools/halide_image_io.h> -L <path/to/libHalide.so> -lHalide -L <path/to/cuda-11.0/bin/lib64> `libpng-config --cflags --ldflags` -ljpeg -lpthread -ldl -o lesson_12_using_the_gpu
,where I additionally specify the path to cuda-11.0/bin/lib64.
However, it failed to run. I suspect that it is because I don't have a GPU driver on my computer.
Does anyone happen to know how to run Halide in such an environment? Thanks a lot in advance.
Beta Was this translation helpful? Give feedback.
All reactions