@@ -48,7 +48,7 @@ PROGRAM f90_example
ENDDO
!Initialization of StarPU
- res = starpu_init_c(C_NULL_PTR)
+ res = starpu_my_init_c()
!Registration of elements
DO i = 1,Nelt
@@ -152,7 +152,7 @@ void starpu_copy_element_task_c(void **ro_h, void **dro_h)
}
//--------------------------------------------------------------//
-int starpu_init_c()
+int starpu_my_init_c()
{
/* Initialize StarPU with default configuration */
int ret;
@@ -17,6 +17,13 @@
MODULE mod_interface
INTERFACE
+ FUNCTION starpu_my_init_c() BIND(C)
+ USE iso_c_binding
+ INTEGER(KIND=C_INT) :: starpu_my_init_c
+ END FUNCTION starpu_my_init_c
+ END INTERFACE
+
+ INTERFACE
SUBROUTINE starpu_register_element_c(Neq,Np,Ng,ro,dro,basis,ro_h,dro_h,basis_h) BIND(C)
USE iso_c_binding
INTEGER(KIND=C_INT),VALUE :: Neq,Np,Ng