https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120960
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2025-07-04
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The builtins that matter:
DEF_GOACC_BUILTIN_COMPILER (BUILT_IN_ACC_ON_DEVICE, "acc_on_device",
BT_FN_INT_INT, ATTR_CONST_NOTHROW_LEAF_LIST)
DEF_GOMP_BUILTIN_COMPILER (BUILT_IN_OMP_IS_INITIAL_DEVICE,
"omp_is_initial_device", BT_FN_INT,
ATTR_CONST_NOTHROW_LIST)
DEF_GOMP_BUILTIN_COMPILER (BUILT_IN_OMP_GET_INITIAL_DEVICE,
"omp_get_initial_device", BT_FN_INT,
ATTR_PURE_NOTHROW_LIST)
DEF_GOMP_BUILTIN_COMPILER (BUILT_IN_OMP_GET_NUM_DEVICES, "omp_get_num_devices",
BT_FN_INT, ATTR_PURE_NOTHROW_LIST)
Which are used for offloading and figuring out where the code is going to be
run on. I am 99% sure if we always enable them in jit it would just work.
So we could do:
#define flag_openacc true
#define flag_openmp true
around the static array.