1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
15// clang
16#ifndef GPUCOMMONDEFSETTINGS_H
17#define GPUCOMMONDEFSETTINGS_H
18
19// clang-format off
20
21#ifndef GPUCOMMONDEF_H
22 #error Please include GPUCommonDef.h!
23#endif
24
25//#define GPUCA_OPENCL_CLANG_C11_ATOMICS // Use C11 atomic instead of old style atomics for OpenCL C++ in clang (OpenCL 2.2 C++ will use C++11 atomics irrespectively)
26
27//#define GPUCA_CUDA_NO_CONSTANT_MEMORY // Do not use constant memory for CUDA
28//#define GPUCA_HIP_NO_CONSTANT_MEMORY // Do not use constant memory for HIP
29#define GPUCA_OPENCL_NO_CONSTANT_MEMORY // Do not use constant memory for OpenCL C++ - MANDATORY as OpenCL cannot cast between __constant and __generic yet!