Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Cudnn.cu
Go to the documentation of this file.
1// @(#)root/tmva/tmva/dnn:$Id$
2// Author: Joana Niermann 23/07/19
3
4/*************************************************************************
5 * Copyright (C) 2019 Joana Niermann *
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 TCudnn architecture class with //
14// for Double_t and Real_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 "Cudnn/Propagate.cu"
29#include "Cudnn/Dropout.cu"
30#include "Cudnn/Arithmetic.cu"
34//#include "Cudnn/Regularization.cu"
36
37//#include "Cudnn/Dropout.cu"
39
40namespace TMVA {
41namespace DNN {
42
43template class TCudnn<Float_t>;
44template class TCudnn<Double_t>;
45
46#ifndef R__HAS_TMVAGPU
47 // if R__HAS_TMVAGPU is not defined this file should not be compiled
48 static_assert(false,"GPU/CUDA architecture is not enabled");
49#endif
50
51 // CuDNN options
52
53
54// int TCudnn<Double_t>::CNNOptions::ConvFwdAlgorithm = -1;
55// int TCudnn<Double_t>::CNNOptions::ConvBwdDataAlgorithm = -1;
56// int TCudnn<Double_t>::CNNOptions::ConvBwdFilterAlgorithm = -1;
57// size_t TCudnn<Double_t>::CNNOptions::ConvMaxWorkspaceSize = 0;
58
59} // end namespace DNN
60} // end namespace TMVA
create variable transformations