LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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
 Estimate image backgrounds.
 
 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
Examples:
forEachPixel.cc.

Definition at line 55 of file DevicePreference.cc.