Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • tbgl/tools/arbd
1 result
Show changes
Commits on Source (3)
......@@ -2093,8 +2093,8 @@ void Configuration::readProductPotentials() {
// Try to match a type
String n = tokenList[i];
n.lower();
if (n == "bond") { type = DIHEDRAL; type_specified = true; }
else if (n == "angle") { type = DIHEDRAL; type_specified = true; }
if (n == "bond") { type = ΒΟΝD; type_specified = true; }
else if (n == "angle") { type = ANGLE; type_specified = true; }
else if (n == "dihedral") { type = DIHEDRAL; type_specified = true; }
else if (n == "vecangle") { type = VECANGLE; type_specified = true; }
else { // Not a type, therefore a path to a potential
......
......@@ -18,7 +18,13 @@ std::vector<GPU> GPUManager::allGpus, GPUManager::gpus, GPUManager::notimeouts;
GPU::GPU(unsigned int id) : id(id) {
cudaSetDevice(id);
#ifndef CUDART_VERSION
#error CUDART_VERSION Undefined!
#elif (CUDART_VERSION < 12000)
cudaGetDeviceProperties(&properties, id);
#else
cudaGetDeviceProperties_v2(&properties, id);
#endif
printf("[%d] %s ", id, properties.name);
if (properties.kernelExecTimeoutEnabled) {
printf("(may timeout) ");
......