Output warning for non-mixed precision complex GPU builds that results will be wrong.

This commit is contained in:
Andreas Tillack 2017-01-20 09:22:55 -05:00
parent d7b5cd2b89
commit d1b3c8e0b6
1 changed files with 5 additions and 0 deletions

View File

@ -83,6 +83,11 @@ IF(QMC_CUDA)
IF(QMC_MIXED_PRECISION)
SET(CUDA_PRECISION float)
ELSE(QMC_MIXED_PRECISION)
IF(QMC_COMPLEX)
MESSAGE(" WARNING: Complex GPU code is not recommended")
MESSAGE(" for the chosen CUDA base precision.")
MESSAGE(" Calculation results will be wrong.")
ENDIF()
SET(CUDA_PRECISION double)
ENDIF(QMC_MIXED_PRECISION)
MESSAGE(" Base precision = ${OHMMS_PRECISION}")