QMCPACK / miniqmc

QMCPACK miniapp: a simplified real space QMC code for algorithm development, performance portability testing, and computer science experiments
Other
27 stars 35 forks source link

Automatically sets __NO_UDR for PGI/NVHPC compilers, since Complex reductions are natively supported. #262

Closed jefflarkin closed 3 years ago

jefflarkin commented 3 years ago

The test_omptarget_complex_reduction test has an ifdef to disable user-defined-reductions when they are not needed for std::complex reductions. This change automatically sets the necessary macro when building with the NVHPC (PGI) compilers, since std::complex reductions are supported. This change enables this test to build and pass with NVHPC 20.11.

qmc-robot commented 3 years ago

Can one of the admins verify this patch?

ye-luo commented 3 years ago

Thank you @jefflarkin