Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-24 10:11:41

0001 /*-------------------------------- -*- C -*- ----------------------------------
0002  * Copyright Celeritas contributors: see top-level COPYRIGHT file for details
0003  * SPDX-License-Identifier: (Apache-2.0 OR MIT)
0004  *---------------------------------------------------------------------------*/
0005 /*!
0006  * \file corecel/device_runtime_api.h
0007  * \brief Include CUDA or HIP runtime APIs for compiling with host/cc compiler.
0008  * \deprecated This file should be replaced by "corecel/DeviceRuntimeApi.hh".
0009  */
0010 // DEPRECATED: remove in Celeritas v1.0
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 "DeviceRuntimeApi.hh"
0025 
0026 #endif /* CELERITAS_DEVICE_RUNTIME_API_H */