LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Namespaces | Functions
DevicePreference.cc File Reference

Implementation file for CPU/GPU device selection. More...

#include <stdlib.h>

Go to the source code of this file.

Namespaces

 lsst
 < multiple inclusion guard macro
 
 lsst.afw
 
 lsst.afw.gpu
 

Functions

void lsst.afw.gpu::setGpuEnable (bool enable)
 Enables or disables GPU acceleration globally. More...
 
bool lsst.afw.gpu::isGpuEnabled ()
 returns true if GPU acceleration is enabled More...
 

Detailed Description

Implementation file for CPU/GPU device selection.

Introduces a global variable which value indicates whether GPU acceleration is enabled. The value of this global variable can be forced to GPU-disable by setting the value of environment variable DISABLE_GPU_ACCELERATION to 1. The value of environment variable DISABLE_GPU_ACCELERATION is red by a global constructor (at the moment when AFW library is loaded).

Author
Kresimir Cosic

Definition in file DevicePreference.cc.

Variable Documentation

bool val

Definition at line 55 of file DevicePreference.cc.