omp-offload.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* Bits of OpenMP and OpenACC handling that is specific to device offloading
  2. and a lowering pass for OpenACC device directives.
  3. Copyright (C) 2005-2019 Free Software Foundation, Inc.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it under
  6. the terms of the GNU General Public License as published by the Free
  7. Software Foundation; either version 3, or (at your option) any later
  8. version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. #ifndef GCC_OMP_DEVICE_H
  17. #define GCC_OMP_DEVICE_H
  18. extern int oacc_get_default_dim (int dim);
  19. extern int oacc_get_min_dim (int dim);
  20. extern int oacc_fn_attrib_level (tree attr);
  21. extern GTY(()) vec<tree, va_gc> *offload_funcs;
  22. extern GTY(()) vec<tree, va_gc> *offload_vars;
  23. extern void omp_finish_file (void);
  24. #endif /* GCC_OMP_DEVICE_H */