24 #include "cheetah/fldo/cuda/Fldo.h" 25 #include "cheetah/cuda_utils/cuda_errorhandling.h" 35 FldoBase::RunnerFactory::RunnerFactory(fldo::Config
const& config)
40 void FldoBase::RunnerFactory::operator()(ResourceType
const& gpu)
42 cudaDeviceProp device_prop = gpu.device_properties();
43 if (!device_prop.canMapHostMemory) {
44 panda::Error e(
"Device ");
45 e << gpu.device_id() <<
" cannot map host memory!";
48 unsigned int cudaFlags = 0;
49 CUDA_ERROR_CHECK(cudaGetDeviceFlags(&cudaFlags));
50 if ((cudaFlags & cudaDeviceMapHost) != cudaDeviceMapHost) {
51 CUDA_ERROR_CHECK(cudaSetDeviceFlags(cudaDeviceMapHost));
Some limits and constants for FLDO.