Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:50

0001 /*-----------------------------------*-C-*-------------------------------------
0002  * Copyright 2022-2024 UT-Battelle, LLC, and other Celeritas developers.
0003  * See the top-level COPYRIGHT file for details.
0004  * SPDX-License-Identifier: (Apache-2.0 OR MIT)
0005  *---------------------------------------------------------------------------*/
0006 /*!
0007  * \file corecel/device_runtime_api.h
0008  * \brief Include CUDA or HIP runtime APIs for compiling with host/cc compiler.
0009  * \deprecated This file should be replaced by "corecel/DeviceRuntimeApi.hh".
0010  */
0011 //---------------------------------------------------------------------------//
0012 #ifndef CELERITAS_DEVICE_RUNTIME_API_H
0013 #define CELERITAS_DEVICE_RUNTIME_API_H
0014 
0015 #if __cplusplus < 201703L
0016 #    error "Celeritas requires C++17 or greater and is not C compatible"
0017 #endif
0018 
0019 #if __GNUC__ > 8 || __clang__
0020 #    pragma GCC warning \
0021         "corecel/device_runtime_api.h is deprecated and should be replaced by \"corecel/DeviceRuntimeApi.hh\""
0022 #endif
0023 
0024 #include "corecel/DeviceRuntimeApi.hh
0025 
0026 #endif /* CELERITAS_DEVICE_RUNTIME_API_H */