mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 14:15:30 -04:00
stop when using cuda input option and code was not compiled with TCE_CUDA=1
This commit is contained in:
parent
63e97f1916
commit
70aab8838f
1 changed files with 5 additions and 0 deletions
|
|
@ -1136,12 +1136,17 @@
|
|||
! TCE_CUDA Number of CUDA devices per node
|
||||
!
|
||||
else if (inp_compare(.false.,test,'cuda')) then
|
||||
#if defined(TCE_CUDA) || defined(TCE_HIP)
|
||||
if (.not.inp_i(icuda))
|
||||
1 call errquit('tce_input: no icuda',0,INPUT_ERR)
|
||||
if (.not.rtdb_put(rtdb,'tce:cuda',mt_int,1,icuda))
|
||||
1 call errquit('tce_input: failed writing to rtdb',0,
|
||||
2 RTDB_ERR)
|
||||
|
||||
#else
|
||||
call errquit('cuda option needs TCE_CUDA compiled code',
|
||||
A 0, INPUT_ERR)
|
||||
#endif
|
||||
!
|
||||
! MAXITER (the maximum number of Davidson iterations)
|
||||
!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue