pppm kspace styles also require -DFFT_SINGLE when using GPUs in single precision
This commit is contained in:
@ -858,6 +858,13 @@ TEST(PairStyle, gpu)
|
||||
if (!Info::has_gpu_device()) GTEST_SKIP();
|
||||
if (test_config.skip_tests.count(test_info_->name())) GTEST_SKIP();
|
||||
|
||||
// when testing PPPM styles with GPUs and GPU support is compiled with single precision
|
||||
// we also must have single precision FFTs; otherwise skip since the test would abort
|
||||
if (utils::strmatch(test_config.basename, ".*pppm.*") &&
|
||||
(Info::has_accelerator_feature("GPU", "precision", "single")) &&
|
||||
(!Info::has_fft_single_support()))
|
||||
GTEST_SKIP();
|
||||
|
||||
const char *args_neigh[] = {"PairStyle", "-log", "none", "-echo",
|
||||
"screen", "-nocite", "-sf", "gpu"};
|
||||
const char *args_noneigh[] = {"PairStyle", "-log", "none", "-echo", "screen", "-nocite", "-sf",
|
||||
|
||||
Reference in New Issue
Block a user