Hi -
In setting up a new PyCUDA installation recently from Git I came across two
issues, and made a patch that fixed them on my system.

Problem #1: The CURAND module requires linking to libcurand.so, which is
found in the directory with the CUDA Runtime, which on my system is in a
different default place (/usr/local/cuda/lib64) than the directory with the
CUDA driver (/usr/lib).  To change this, I added some additional options to
specify:
    - The name of the CUDA Runtime library (with default).
    - The directory where the CUDA Runtime is found
I also amended the description of how to compile _curand with the location
CUDA Runtime Directory.  Besides allowing the _curand.so module that comes
with PyCUDA to be properly built, this change also benefits projects using
Codepy to generate CUDA runtime code, as the Copperhead project does, since
CUDA Runtime information is located in the aksetup-defaults file along with
the other CUDA configuration information.

Problem #2: The USE_SHIPPED_BOOST option defaults to True.  If you're using
configure.py to set up your siteconf.py, this is a problem.  If you omit
--use-shipped-boost, the default of True means that you will use the shipped
boost anyway.  So, there's no way to use a system Boost without manually
editing siteconf.py after running configure.  The easy fix for this is just
to change the default to false.

You can see the changes at
https://github.com/BryanCatanzaro/catanzaro.pycuda/commit/46a756851195d1c68b892130b9faf85cb5398086

Thanks,
bryan
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to