"David A. Markowitz" <[email protected]> writes:

> Thanks again, Andreas. I'm really looking forward to getting started with
> PyCUDA.
>
> Unfortunately, I've already tried your suggested approach (updating
> nvcc.profile with NVVMIR_LIBRARY_DIR = /usr/local/cuda-6.5/nvvm/libdevice,
> which contains libdevice.compute_35.10.bc in my installation), but it did
> not solve the problem. When I asked NVIDIA about this directly (hoping not
> to bother you further), they told me I should never need to modify
> nvcc.profile under any circumstances, which wasn't very helpful.
>
> Is there some other line in nvcc.profile that I can modify so that nvcc
> will be able to find the appropriate libdevice library when called by
> PyCUDA's compiler script? e.g. perhaps I could append something to the
> INCLUDES or LIBRARIES variables?
>
> Is there an easy way for me to see which environment variables are
> available when PyCUDA's compiler.py code calls nvcc? This might help
> diagnose the problem.

The call happens here:

https://github.com/inducer/pycuda/blob/master/pycuda/compiler.py#L114

using this:

https://github.com/inducer/pytools/blob/master/pytools/prefork.py#L34

https://docs.python.org/2.7/library/subprocess.html

says that processes should inherit the parent's environment unless
otherwise specified (and it isn't), so it's not clear to me what would
override your variable... You can also use the 'keep=True' flag and try
and run nvcc yourself in the temp directory that PyCUDA creates. That's
perhaps the best way of figuring out what's up.

Andreas

Attachment: signature.asc
Description: PGP signature

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

Reply via email to