mirror of https://gitlab.com/QEF/q-e.git
fix: acc kernels clause with if inside
This commit is contained in:
parent
1d77f7d808
commit
0eca841e44
|
@ -218,13 +218,15 @@ DEV_ACC kernels present(csc)
|
|||
csc = 0.0d0
|
||||
DEV_ACC end kernels
|
||||
ibgrp_i = ibgrp_g2l( i )
|
||||
DEV_ACC kernels present(cp_tmp)
|
||||
IF( ibgrp_i > 0 ) THEN
|
||||
DEV_ACC kernels present(cp_tmp)
|
||||
cp_tmp = cp_bgrp( :, ibgrp_i )
|
||||
ELSE
|
||||
cp_tmp = 0.0d0
|
||||
END IF
|
||||
DEV_ACC end kernels
|
||||
ELSE
|
||||
DEV_ACC kernels present(cp_tmp)
|
||||
cp_tmp = 0.0d0
|
||||
DEV_ACC end kernels
|
||||
END IF
|
||||
!!DEV_ACC host_data use_device(cp_tmp)
|
||||
|
||||
!!DEV_ACC update self(cp_tmp)
|
||||
|
|
Loading…
Reference in New Issue