Commit 6b088a6a authored by Peter Eastman's avatar Peter Eastman
Browse files

Renamed getPlatform() to getPlatformByName()

parent ab31a17d
...@@ -42,13 +42,13 @@ extern "C" void registerKernelFactories() { ...@@ -42,13 +42,13 @@ extern "C" void registerKernelFactories() {
// Only register cuda kernels if cuda platform is found // Only register cuda kernels if cuda platform is found
try { try {
Platform& platform = Platform::getPlatform("CudaPlatform"); Platform& platform = Platform::getPlatformByName("CudaPlatform");
// platform.registerKernelFactory("CudaNMLKernelFactory", new CudaNMLKernelFactory()); // platform.registerKernelFactory("CudaNMLKernelFactory", new CudaNMLKernelFactory());
} catch (std::exception exc) { // non fatal } catch (std::exception exc) { // non fatal
} }
try { try {
Platform& platform = Platform::getPlatform("ReferencePlatform"); Platform& platform = Platform::getPlatformByName("ReferencePlatform");
platform.registerKernelFactory("ReferenceNMLKernelFactory", new ReferenceNMLKernelFactory()); platform.registerKernelFactory("ReferenceNMLKernelFactory", new ReferenceNMLKernelFactory());
} catch (std::exception exc) { // non fatal } catch (std::exception exc) { // non fatal
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment