diff --git a/openacc/Makefile b/openacc/Makefile index 3590249c..aae571ad 100644 --- a/openacc/Makefile +++ b/openacc/Makefile @@ -11,7 +11,7 @@ OFFLOAD=-fopenacc -foffload=nvptx-none="-march=sm_70" LIBDIR=../lib INCDIR=../include MODDIR=../modules -IMPLDIR=./impl # Adding the impl directory +IMPLDIR=./impl # Include and library paths INCLUDES=-I$(LIBDIR) -I$(INCDIR) -I$(MODDIR) -I$(IMPLDIR) @@ -20,6 +20,7 @@ LIBS=-L$(LIBDIR) -lpsb_util -lpsb_ext -lpsb_base -lopenblas -lmetis # Source files FOBJS= psb_i_oacc_vect_mod.o psb_d_oacc_vect_mod.o \ psb_oacc_mod.o psb_d_oacc_csr_mat_mod.o \ + psb_oacc_env_mod.o \ impl/psb_d_oacc_csr_vect_mv.o # Library name diff --git a/openacc/psb_oacc_env_mod.F90 b/openacc/psb_oacc_env_mod.F90 new file mode 100644 index 00000000..83c9426d --- /dev/null +++ b/openacc/psb_oacc_env_mod.F90 @@ -0,0 +1,18 @@ +module psb_oacc_env_mod +contains + + subroutine psb_oacc_init(ctxt, dev) + use psb_penv_mod + use psb_const_mod + use psb_error_mod + type(psb_ctxt_type), intent(in) :: ctxt + integer, intent(in), optional :: dev + + end subroutine psb_oacc_init + + subroutine psb_oacc_exit() + integer :: res + + end subroutine psb_oacc_exit + +end module psb_oacc_env_mod diff --git a/openacc/psb_oacc_mod.F90 b/openacc/psb_oacc_mod.F90 index ce5e85f9..fe827db8 100644 --- a/openacc/psb_oacc_mod.F90 +++ b/openacc/psb_oacc_mod.F90 @@ -1,6 +1,8 @@ module psb_oacc_mod use psb_const_mod + use psb_oacc_env_mod + use psb_d_oacc_vect_mod use psb_d_oacc_csr_mat_mod