diff --git a/openacc/Makefile b/openacc/Makefile index 3327610f..c82a9281 100644 --- a/openacc/Makefile +++ b/openacc/Makefile @@ -10,7 +10,7 @@ include ../Make.inc 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) @@ -21,6 +21,7 @@ CINCLUDES= # 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 # Library name LIBNAME=libpsb_openacc.a @@ -42,7 +43,8 @@ ilib: $(OBJS) $(MAKE) -C impl lib psb_oacc_mod.o : psb_i_oacc_vect_mod.o psb_d_oacc_vect_mod.o \ - psb_d_oacc_csr_mat_mod.o + psb_d_oacc_csr_mat_mod.o + clean: cclean iclean /bin/rm -f $(FOBJS) *$(.mod) *.a veryclean: clean 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