DFT-FE 1.1.0-pre
Density Functional Theory With Finite-Elements
Loading...
Searching...
No Matches
DeviceTypeConfig.hip.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#ifndef dftfeDeviceTypeConfig_hiph
18#define dftfeDeviceTypeConfig_hiph
19
20#include <hip/hip_runtime.h>
21#include <hip/hip_complex.h>
22#include <hipblas.h>
23namespace dftfe
24{
25 namespace utils
26 {
27 typedef hipError_t deviceError_t;
28 typedef hipStream_t deviceStream_t;
29 typedef hipEvent_t deviceEvent_t;
30 typedef hipDoubleComplex deviceDoubleComplex;
31 typedef hipFloatComplex deviceFloatComplex;
32
33 // static consts
34 static const deviceError_t deviceSuccess = hipSuccess;
35
36 // vendor blas related typedef and static consts
37 typedef hipblasHandle_t deviceBlasHandle_t;
38 typedef hipblasOperation_t deviceBlasOperation_t;
39 typedef hipblasStatus_t deviceBlasStatus_t;
40
41 static const hipblasOperation_t DEVICEBLAS_OP_N = HIPBLAS_OP_N;
42 static const hipblasOperation_t DEVICEBLAS_OP_T = HIPBLAS_OP_T;
43 static const hipblasOperation_t DEVICEBLAS_OP_C = HIPBLAS_OP_C;
44 } // namespace utils
45} // namespace dftfe
46
47#endif // dftfeDeviceTypeConfig_hiph
Definition Cell.h:36
cudaError_t deviceError_t
Definition DeviceTypeConfig.cu.h:26
cudaStream_t deviceStream_t
Definition DeviceTypeConfig.cu.h:27
cublasStatus_t deviceBlasStatus_t
Definition DeviceTypeConfig.cu.h:38
static const deviceError_t deviceSuccess
Definition DeviceTypeConfig.cu.h:33
cuDoubleComplex deviceDoubleComplex
Definition DeviceTypeConfig.cu.h:29
static const cublasOperation_t DEVICEBLAS_OP_N
Definition DeviceTypeConfig.cu.h:41
cublasHandle_t deviceBlasHandle_t
Definition DeviceTypeConfig.cu.h:36
static const cublasOperation_t DEVICEBLAS_OP_T
Definition DeviceTypeConfig.cu.h:42
cuFloatComplex deviceFloatComplex
Definition DeviceTypeConfig.cu.h:30
cudaEvent_t deviceEvent_t
Definition DeviceTypeConfig.cu.h:28
static const cublasOperation_t DEVICEBLAS_OP_C
Definition DeviceTypeConfig.cu.h:43
cublasOperation_t deviceBlasOperation_t
Definition DeviceTypeConfig.cu.h:37
Definition pseudoPotentialToDftfeConverter.cc:34