Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Cuda.cu
Go to the documentation of this file.
1// @(#)root/tmva/tmva/dnn:$Id$
2// Author: Simon Pfreundschuh 10/07/16
3
4/*************************************************************************
5 * Copyright (C) 2016, Simon Pfreundschuh *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12/////////////////////////////////////////////////////////////////
13// Explicit instantiation of the TCuda architecture class with //
14// for Double_t and Float_t floating point types. //
15/////////////////////////////////////////////////////////////////
16
17// in case we compile C++ code with std-17 and cuda with lower standard
18// use experimental string_view, otherwise keep as is
19#include "RConfigure.h"
20#ifdef R__HAS_STD_STRING_VIEW
21#ifndef R__CUDA_HAS_STD_STRING_VIEW
22#undef R__HAS_STD_STRING_VIEW
23#define R__HAS_STD_EXPERIMENTAL_STRING_VIEW
24#endif
25#endif
26
28#include "Cuda/Propagation.cu"
29#include "Cuda/Arithmetic.cu"
32#include "Cuda/LossFunctions.cu"
35#include "Cuda/Dropout.cu"
37
38namespace TMVA {
39namespace DNN {
40
41template class TCuda<Float_t>;
42template class TCuda<Double_t>;
43
44
45#ifndef R__HAS_TMVAGPU
46 // if R__HAS_TMVAGPU is not defined this file should not be compiled
47 static_assert(false,"GPU/CUDA architecture is not enabled");
48#endif
49
50
51} // namespace tmva
52} // namespace dnn
create variable transformations