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


In reply to Re: [OT] Merry Christmas and gift of love by bliako
in thread [OT] Merry Christmas and gift of love by marioroy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.