parallel_backend.h 845 B

1234567891011121314151617181920212223242526272829
  1. // -*- C++ -*-
  2. //===-- parallel_backend.h ------------------------------------------------===//
  3. //
  4. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  5. // See https://llvm.org/LICENSE.txt for license information.
  6. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #ifndef _PSTL_PARALLEL_BACKEND_H
  10. #define _PSTL_PARALLEL_BACKEND_H
  11. #if defined(_PSTL_PAR_BACKEND_SERIAL)
  12. # include "parallel_backend_serial.h"
  13. namespace __pstl
  14. {
  15. namespace __par_backend = __serial_backend;
  16. }
  17. #elif defined(_PSTL_PAR_BACKEND_TBB)
  18. # include "parallel_backend_tbb.h"
  19. namespace __pstl
  20. {
  21. namespace __par_backend = __tbb_backend;
  22. }
  23. #else
  24. _PSTL_PRAGMA_MESSAGE("Parallel backend was not specified");
  25. #endif
  26. #endif /* _PSTL_PARALLEL_BACKEND_H */