after compiling ngsolve with cuda-support, I tried to run the
basic examples from ngscuda/examples/unifiedvector.py.
The results are not as expected (see the listing below).
Does anyone have any idea what could be causing this?
I have not found any clues in the documentation.
Thank you,
I compiled the new version (‘6.2.2307-7-gacaa2a3a3’) but still
have some problems to interpret the results (see the file below).
Why do I get an all zero result vector in the final print statement?
May be I misunderstood how to handle UnifiedVectors.
Could you please give me a hint?
Thanks,
I am still wondering how to use UnifiedVectors. In the example below
I start with a numpy array and use it to generate a corresponding
UnifiedVector. This correctly allocates memory on the GPU.
Then I define u2 = u + u followed by u2e = u2.Evaluate(), which
also allocates some memory on the GPU.
The next step is u2e.UpdateHost() to copy the result from GPU
to CPU. But when I print u2e, all components are 0.
I’ve got the impression, that calling UpdateHost() has no effect
at all.
It would be nice to get some help on this issue.
Best regards,