McCode
McCode copied to clipboard
Fractal SasView models (and potentially further ones) need -DUSE_CUDA in case of OPENACC
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
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
I have investigated thoroughly, it is safe to add this at the other mccode-r.h
defines GPU use
mccode-r.h
edit reverted in 707ce5f and moved to fractal comps since there were side-effects on non-fractals I the above commit