Peano
Loading...
Searching...
No Matches
CompilerSpecificSettings.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5#if (defined(__INTEL_COMPILER) || defined(__ICC)) && defined(__WIN32__)
7#elif defined(__GNUC__) && defined(__WIN32__)
9
10#elif (defined(__INTEL_COMPILER) || defined(__ICC)) && defined(__linux)
12#elif defined(SYCL_LANGUAGE_VERSION) && defined(__INTEL_LLVM_COMPILER) && defined(__linux)
14#elif defined(__INTEL_LLVM_COMPILER) && defined(__linux)
16#elif defined(__AMDGPU__) && defined(__linux)
18#elif defined(__clang__) && defined(__linux)
20// https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/#nvcc-identification-macro
21#elif defined(__NVCOMPILER) /*|| defined(_NVHPC_CUDA) || defined(__NVCOMPILER_CUDA__) || defined(__CUDACC__) || defined(NVCC) || defined(__NVCC__)*/ && defined(__linux)
23#elif defined(__GNUC__) && defined(__linux)
25
26#elif defined(__clang__) && (defined(__APPLE__) || defined(__apple_build_version__))
28#elif defined(__GNUC__) && (defined(__APPLE__) || defined(__apple_build_version__))
30#else
31 #error Unknown compiler target. Please adopt CompilerSpecificSettings.h
32#endif