Skip to content

Commit

Permalink
fixes to compile non-offload mrcc code. See #154 and #153
Browse files Browse the repository at this point in the history
  • Loading branch information
edoapra committed Sep 20, 2019
1 parent 7809124 commit ec60ebb
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions src/tce/mrcc/ccsd_t/tce_mrcc_ccsdpt_subg.F
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,12 @@ SUBROUTINE tce_mrcc_ccsdpt_subg(d_t1,k_t1_offset,
c
c MIC
c
#ifdef USE_OFFLOAD
triplesx_alloced=.false.
triplesx1_alloced=.false.
v2sub_alloced=.false.
t1sub_alloced=.false.
t2sub_alloced=.false.
#endif
c estimate triplesx size
range_p4=0
do t_p4b = noab+1,noab+nvab
Expand All @@ -115,22 +116,16 @@ SUBROUTINE tce_mrcc_ccsdpt_subg(d_t1,k_t1_offset,
range_h1 = max(range_h1,int_mb(k_range+t_h1b-1))
enddo
size=(range_p4**3)*(range_h1**3)
triplesx_copyback=.true.
c call util_align64(size)
triplesx_mxlgth=size
if (.not.MA_PUSH_GET(mt_dbl,size,'(T) singles',l_singles,
1 k_singles)) call errquit('ccsd_t: MA error sgl',
2 size,MA_ERR)
if (.not.MA_PUSH_GET(mt_dbl,size,'(T) doubles',l_doubles,
1 k_doubles)) call errquit('ccsd_t: MA error dbl',
2 size,MA_ERR)
#ifdef USE_OFFLOAD
#if 0
call offl_alloc(dbl_mb(k_singles),size)
triplesx1_alloced=.true.
#else
triplesx1_alloced=.false.
#endif
triplesx_copyback=.true.
c call util_align64(size)
triplesx_mxlgth=size
call offl_alloc(dbl_mb(k_doubles),size)
triplesx_alloced=.true.
#endif
Expand Down Expand Up @@ -187,12 +182,11 @@ SUBROUTINE tce_mrcc_ccsdpt_subg(d_t1,k_t1_offset,
cc call dcopy(size, 0.0d0, 0, dbl_mb(k_doubles), 1)
cc call offl_zerofill(dbl_mb(k_doubles),size)
call dcopy(triplesx_mxlgth, 0.0d0, 0, dbl_mb(k_singles), 1)
#if 0
call offl_zerofill(dbl_mb(k_singles),triplesx_mxlgth)
#endif

call dcopy(triplesx_mxlgth, 0.0d0, 0, dbl_mb(k_doubles), 1)
#ifdef USE_OFFLOAD
call offl_zerofill(dbl_mb(k_doubles),triplesx_mxlgth)
#endif
c -----------
c
ccx if (.not.MA_PUSH_GET(mt_dbl,size,'(T) singles',l_singles,
Expand Down Expand Up @@ -385,7 +379,6 @@ SUBROUTINE tce_mrcc_ccsdpt_subg(d_t1,k_t1_offset,
triplesx_alloced=.false.
#if 0
call offl_free(dbl_mb(k_singles),size)
triplesx1_alloced=.false.
#endif
#endif

Expand Down

0 comments on commit ec60ebb

Please sign in to comment.