McCode icon indicating copy to clipboard operation
McCode copied to clipboard

Fractal SasView models (and potentially further ones) need -DUSE_CUDA in case of OPENACC

Open willend opened this issue 1 year ago • 2 comments

It works to add a small patch at the top of sas_kernel_header.c like this and attached:

#ifdef OPENACC
# define USE_CUDA
#endif

sas_kernel_header.c.txt

But perhaps we should do this at the McCode level instead? ... If there are no immediate side-effects? Alongside #include <accelmath.h> perhaps?

@farhi any point of view? @jorobledo discovered the symptoms and I found the underlying issue in sas_kernel_header.c

willend avatar Sep 22 '23 07:09 willend

I have investigated thoroughly, it is safe to add this at the other mccode-r.h defines GPU use

willend avatar Sep 22 '23 12:09 willend

mccode-r.h edit reverted in 707ce5f and moved to fractal comps since there were side-effects on non-fractals I the above commit

willend avatar Sep 22 '23 18:09 willend