Unverified Commit 529bf0f2 authored by Andy Simmonett's avatar Andy Simmonett
Browse files

Add extra test to compare DrudeNoseHoover across platforms

parent 7f1dd6a3
...@@ -48,8 +48,9 @@ using namespace std; ...@@ -48,8 +48,9 @@ using namespace std;
extern "C" OPENMM_EXPORT void registerDrudeCudaKernelFactories(); extern "C" OPENMM_EXPORT void registerDrudeCudaKernelFactories();
//OpenMM::CudaPlatform platform; void runPlatformTests() { }
#include "TestDrudeNoseHoover.h"
Platform& initializePlatform(int argc, char* argv[]) { Platform& initializePlatform(int argc, char* argv[]) {
registerDrudeCudaKernelFactories(); registerDrudeCudaKernelFactories();
...@@ -57,7 +58,4 @@ Platform& initializePlatform(int argc, char* argv[]) { ...@@ -57,7 +58,4 @@ Platform& initializePlatform(int argc, char* argv[]) {
return Platform::getPlatformByName("CUDA"); return Platform::getPlatformByName("CUDA");
} }
#include "TestDrudeNoseHoover.h"
void runPlatformTests() { }
...@@ -48,13 +48,13 @@ using namespace std; ...@@ -48,13 +48,13 @@ using namespace std;
extern "C" OPENMM_EXPORT void registerDrudeOpenCLKernelFactories(); extern "C" OPENMM_EXPORT void registerDrudeOpenCLKernelFactories();
void runPlatformTests() { }
#include "TestDrudeNoseHoover.h"
Platform& initializePlatform(int argc, char* argv[]) { Platform& initializePlatform(int argc, char* argv[]) {
registerDrudeOpenCLKernelFactories(); registerDrudeOpenCLKernelFactories();
if (argc > 1) Platform::getPlatformByName("OpenCL").setPropertyDefaultValue("Precision", std::string(argv[1])); if (argc > 1) Platform::getPlatformByName("OpenCL").setPropertyDefaultValue("Precision", std::string(argv[1]));
return Platform::getPlatformByName("OpenCL"); return Platform::getPlatformByName("OpenCL");
} }
#include "TestDrudeNoseHoover.h"
void runPlatformTests() { }
...@@ -30,26 +30,17 @@ ...@@ -30,26 +30,17 @@
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
//#include "ReferenceTests.h" //#include "ReferenceTests.h"
#include "openmm/internal/AssertionUtilities.h"
#include "openmm/Context.h"
#include "openmm/NonbondedForce.h"
#include "openmm/Platform.h" #include "openmm/Platform.h"
#include "openmm/System.h"
#include "openmm/VerletIntegrator.h"
#include "openmm/DrudeForce.h"
#include "SimTKOpenMMUtilities.h"
#include "ReferencePlatform.h"
#include <iostream>
#include <vector>
using namespace OpenMM; using namespace OpenMM;
using namespace std; using namespace std;
extern "C" OPENMM_EXPORT void registerDrudeReferenceKernelFactories(); //extern "C" OPENMM_EXPORT void registerDrudeReferenceKernelFactories();
Platform& initializePlatform(int argc, char* argv[]) { Platform& initializePlatform(int argc, char* argv[]) {
registerDrudeReferenceKernelFactories(); /* registerDrudeReferenceKernelFactories();
*/
return Platform::getPlatformByName("Reference"); return Platform::getPlatformByName("Reference");
} }
......
This diff is collapsed.
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