CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
SwitchProducerCUDA Namespace Reference

Classes

class  SwitchProducerCUDA
 
class  TestSwitchProducerCUDA
 

Functions

def _switch_cuda
 

Variables

 _cuda_enabled_cached = None
 

Function Documentation

def SwitchProducerCUDA._switch_cuda ( )
private

Definition at line 5 of file SwitchProducerCUDA.py.

5 
6 def _switch_cuda():
7  global _cuda_enabled_cached
8  if _cuda_enabled_cached is None:
9  import os
10  _cuda_enabled_cached = (os.system("cudaIsEnabled") == 0)
11  return (_cuda_enabled_cached, 2)

Variable Documentation

SwitchProducerCUDA._cuda_enabled_cached = None

Definition at line 3 of file SwitchProducerCUDA.py.