Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: [OT] Merry Christmas and gift of love

by bliako (Monsignor)
on Dec 27, 2021 at 17:02 UTC ( #11139941=note: print w/replies, xml ) Need Help??


in reply to [OT] Merry Christmas and gift of love

Thanks marioroy++ for this present. And happy festivus to all from me as well.

A slight complication: in my linux box the cuda compiler (nvcc) needs some specific gcc versions (for nvcc v 10.1, 10.2, gcc version must be 8). If there are multiple compilers, nvcc must be told where the compiler to use, resides via e.g. --compiler-bindir=/usr/local/gcc84/bin (and make sure that in that dir there are executables or links named gcc,c++,cpp). I found that placing a line (my first and only, I hope, interaction with the Serpent for this year!) '--compiler-bindir=/usr/local/gcc84/bin', in mandel_cuda.py, line 57 (e.g. where the options array is set), compiles your program and yep! it shows spectacularly my holy-grail since the years I was still sucking on my Alma Mater's mamma (at the guts, in the Sun-Sparkstations dungeon).

I have also encountered the problem that pycuda would not install (via pip3 as per your instructions) because it did not know where my cuda-sdk installation was. I solved that with export CPATH=$CPATH:/usr/local/cuda/include; export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda/lib64

bw, bliako

Replies are listed 'Best First'.
Re^2: [OT] Merry Christmas and gift of love
by marioroy (Parson) on Dec 27, 2021 at 22:41 UTC

    Thank you for the report, bliako.

    One may specify the compiler-bindir option. CPATH and LIBRARY_PATH environment variables are appended in mandel_cuda.py, before importing the Python CUDA module. See update.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139941]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-05-25 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (90 votes). Check out past polls.

    Notices?