McCode icon indicating copy to clipboard operation
McCode copied to clipboard

Work on offloading to GPU using gcc/OpenACC

Open willend opened this issue 3 years ago • 1 comments

Something along the lines of gcc -fopenmp -foffload=-lm -foffload=-latomic -DOPENACC BNL_H8.c -lm

seems to at least provide a compiled binary using gcc 10.

Investigate further. Original and edited BNL_H8.c codes here:

BNL_H8_orig.c.TXT BNL_H8.c.TXT

  • naturally segfaults at execution ;-)

willend avatar Apr 22 '21 14:04 willend

https://gcc.gnu.org/wiki/Offloading#Compilation_process to educate ourselves, try with simple non-mcstas code first

willend avatar Apr 22 '21 14:04 willend