¿Cómo depurar el error de compilación Fortran 90 "No hay una subrutina específica para el genérico 'foo' en (1)"?
stoy tratando de escribir enlaces Fortran 2003 a la biblioteca CUFFT usando el módulo iso_c_bindings, pero tengo problemas concufftPlanMany
subrutina (similar asfftw_plan_many_dft
en la biblioteca FFTW).
Los enlaces en sí se ven así:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! cufftResult cufftPlanMany(cufftHandle *plan, int rank, int *n,
! int *inembed, int istride, int idist,
! int *onembed, int ostride, int odist,
! cufftType type, int batch)
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
interface cufftPlanMany
subroutine cufftPlanMany(plan, rank, n, &
inembed, istride, idist, &
onembed, ostride, odist, &
type, batch) &
& bind(C,name='cufftPlanMany')
use iso_c_binding
integer(c_int):: plan
integer(c_int),value:: rank, type, batch
integer(c_int):: n(*)
integer(c_int),value:: istride, idist, ostride, odist
integer(c_int):: inembed(*), onembed(*)
end subroutine cufftPlanMany
end interface cufftPlanMany
La parte que llama se ve así:
integer(c_int):: plan
integer(c_int):: batch
integer(c_size_t):: size
! ...
call cufftPlanMany(plan, 1, size,&
0, 1, size,&
0, 1, size,&
CUFFT_C2C, batch)
esafortunadamente, @ tratando de compilar estos resultados en
Error: no existe una subrutina específica para el 'cufftplanmany' genérico en (1)
error de compilación. Intentar usar variables en lugar de constantes tampoco ayudó. ¿Podría ayudarme a depurar esto?
El compilador utilizado es gfortran: GNU Fortran (Gentoo 4.4.5 p1.2, pie-0.4.5) 4.4.5