takagi / cl-cuda

Cl-cuda is a library to use NVIDIA CUDA in Common Lisp programs.
MIT License
280 stars 24 forks source link

Add pkg-config support to help find headers #102

Closed ghollisjr closed 3 years ago

ghollisjr commented 3 years ago

I added the following line to the top of driver-api/type-grovel.lisp:

(pkg-config-cflags "cuda" :optional t)

and this fixed a groveler build error on my system due to not being able to find CUDA headers without pkg-config. Since it's optional, seems like it would be safe to add for everyone else as well.

takagi commented 3 years ago

Thanks! Would you post a pull request with the line added, so I can merge it to the master soon?

ghollisjr commented 3 years ago

Tested it and it works for me, thank you!