mgomp.c 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. /* Define shared memory arrays for -msoft-stack and -muniform-simt.
  2. Copyright (C) 2015-2022 Free Software Foundation, Inc.
  3. This file is free software; you can redistribute it and/or modify it
  4. under the terms of the GNU General Public License as published by the
  5. Free Software Foundation; either version 3, or (at your option) any
  6. later version.
  7. This file is distributed in the hope that it will be useful, but
  8. WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. General Public License for more details.
  11. Under Section 7 of GPL version 3, you are granted additional
  12. permissions described in the GCC Runtime Library Exception, version
  13. 3.1, as published by the Free Software Foundation.
  14. You should have received a copy of the GNU General Public License and
  15. a copy of the GCC Runtime Library Exception along with this program;
  16. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  17. <http://www.gnu.org/licenses/>. */
  18. /* OpenACC offloading does not use these symbols; thus, they are exposed
  19. only for the -mgomp multilib. The same definitions are also provided
  20. in crt0.c for the case of non-offloading compilation. 32 is the maximum
  21. number of warps in a CTA. */
  22. #if defined(__nvptx_softstack__) && defined(__nvptx_unisimt__)
  23. void *__nvptx_stacks[32] __attribute__((shared,nocommon));
  24. unsigned __nvptx_uni[32] __attribute__((shared,nocommon));
  25. #endif