DFT-EFE
 
Loading...
Searching...
No Matches
DeviceTypeConfig.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (c) 2017-2025 The Regents of the University of Michigan and DFT-FE
4// authors.
5//
6// This file is part of the DFT-FE code.
7//
8// The DFT-FE code is free software; you can use it, redistribute
9// it, and/or modify it under the terms of the GNU Lesser General
10// Public License as published by the Free Software Foundation; either
11// version 2.1 of the License, or (at your option) any later version.
12// The full text of the license can be found in the file LICENSE at
13// the top level of the DFT-FE distribution.
14//
15// ---------------------------------------------------------------------
16
17/*
18 * @author Ian C. Lin., Sambit Das
19 */
20#ifndef dftefeDeviceTypeConfig_h
21#define dftefeDeviceTypeConfig_h
22
23#ifdef DFTEFE_WITH_DEVICE
24# ifdef DFTEFE_WITH_DEVICE_LANG_CUDA
25# include "DeviceTypeConfig.cu.h"
26# elif DFTEFE_WITH_DEVICE_LANG_HIP
27# include "DeviceTypeConfig.hip.h"
28# elif DFTEFE_WITH_DEVICE_LANG_SYCL
30# endif
31#else
32namespace dftefe
33{
34 namespace utils
35 {
36 typedef int deviceError_t;
37 typedef int deviceStream_t;
38 typedef int deviceEvent_t;
39 typedef int deviceBlasStatus_t;
40 typedef int deviceBlasHandle_t;
42 } // namespace utils
43} // namespace dftefe
44#endif // DFTEFE_WITH_DEVICE
45#endif // dftefeDeviceTypeConfig_h
static cudaStream_t defaultStream
Definition: DeviceTypeConfig.cu.h:62
cudaError_t deviceError_t
Definition: DeviceTypeConfig.cu.h:26
cublasHandle_t deviceBlasHandle_t
Definition: DeviceTypeConfig.cu.h:36
cudaStream_t deviceStream_t
Definition: DeviceTypeConfig.cu.h:27
cublasStatus_t deviceBlasStatus_t
Definition: DeviceTypeConfig.cu.h:38
cudaEvent_t deviceEvent_t
Definition: DeviceTypeConfig.cu.h:28
dealii includes
Definition: AtomFieldDataSpherical.cpp:31