CMS 3D CMS Logo

Classes | Functions | Variables
SwitchProducerCUDA Namespace Reference

Classes

class  SwitchProducerCUDA
 
class  TestSwitchProducerCUDA
 

Functions

def _switch_cuda ()
 

Variables

 _cuda_enabled_cached
 

Function Documentation

◆ _switch_cuda()

def SwitchProducerCUDA._switch_cuda ( )
private

Definition at line 5 of file SwitchProducerCUDA.py.

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

Variable Documentation

◆ _cuda_enabled_cached

SwitchProducerCUDA._cuda_enabled_cached
private

Definition at line 3 of file SwitchProducerCUDA.py.

SwitchProducerCUDA._switch_cuda
def _switch_cuda()
Definition: SwitchProducerCUDA.py:5