SG++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
detectPlatformConfiguration.cpp

This example can be found under base/examples/detectPlatformConfiguration.cpp.

// Copyright (C) 2008-today The SG++ project
// This file is part of the SG++ project. For conditions of distribution and
// use, please see the copyright notice provided with SG++ or at
// sgpp.sparsegrids.org
#include <iostream>
#if USE_OCL == 1
int main(int argc, char** argv) {
std::shared_ptr<sgpp::base::OCLOperationConfiguration> configuration =
std::make_shared<sgpp::base::OCLOperationConfiguration>(
"detectPlatform.cfg");
(*configuration).replaceIDAttr("VERBOSE", true);
sgpp::base::OCLManagerMultiPlatform manager(configuration);
configuration->serialize("detectPlatformOut.cfg");
return 0;
}
#else
int main(int argc, char** argv) {
std::cout << "no OpenCL support" << std::endl;
}
#endif