- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Dear All,
I guess this question has been asked a zillion times, but still I can't make heads or tails out of what's available online and my only hope is to ask a question here.
Here's my problem: I have a Fortran 90 code which uses BLAS and LAPACK routines, and I'm trying to compile it with ifort and link it with MKL. I really don't need anything else --- it's a single-thread sequential code, nothing fancy here, just a couple of calls to dgemv and its relatives. The code itself compiles fine gfortran and PGI, so there's not problem there. The only problem is how to link the darn thing with MKL's blas and lapack.
I tried the suggestions from here:
http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
but this plain doesn't work for me, neither for static nor dynamic link.
The compiler keeps complaing along the lines of:
det_n2___.f:(.text+0xb00): undefined reference to `dcopy_'
det_n2___.f:(.text+0xb4b): undefined reference to `dgemm_'
I'm using ifort version 11.1 on a 32-bit machine under ubuntu 10.04 if that matters.
Any help would be greatly appreciated.
Zhenya
I guess this question has been asked a zillion times, but still I can't make heads or tails out of what's available online and my only hope is to ask a question here.
Here's my problem: I have a Fortran 90 code which uses BLAS and LAPACK routines, and I'm trying to compile it with ifort and link it with MKL. I really don't need anything else --- it's a single-thread sequential code, nothing fancy here, just a couple of calls to dgemv and its relatives. The code itself compiles fine gfortran and PGI, so there's not problem there. The only problem is how to link the darn thing with MKL's blas and lapack.
I tried the suggestions from here:
http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
but this plain doesn't work for me, neither for static nor dynamic link.
The compiler keeps complaing along the lines of:
det_n2___.f:(.text+0xb00): undefined reference to `dcopy_'
det_n2___.f:(.text+0xb4b): undefined reference to `dgemm_'
I'm using ifort version 11.1 on a 32-bit machine under ubuntu 10.04 if that matters.
Any help would be greatly appreciated.
Zhenya
Enlace copiado
3 Respuestas
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
It can be as simple as
$ ifort -mkl
"but this plain doesn't work for me" does not convey any sense of what went wrong. Please post the actual command line used, and the error messages issued. You may add the -V option to produce more informative messages.
$ ifort -mkl
"but this plain doesn't work for me" does not convey any sense of what went wrong. Please post the actual command line used, and the error messages issued. You may add the -V option to produce more informative messages.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Zhenya,
may be the Linking Examples ( see into User's Guide) will help you or please see this KB article.
Don't forget to use the grouping symbols
-Wl,--start-group -...........-Wl,--end-group
--Gennady
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Thank you Gennady for the link to the KB article!
Responder
Opciones de temas
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla