Hello,
I tried to run an Ax=b solver on magma and the source includes "magma_slapack.h".
At compilation time, I get the following error:
...
../include/magma_slapack.h:945: error: âFORTRAN_NAMEâ declared as function returning a function
../include/magma_slapack.h:945: warning: parameter names (without types) in function declaration
../include/magma_slapack.h:951: error: âFORTRAN_NAMEâ declared as function returning a function
../include/magma_slapack.h:951: warning: parameter names (without types) in function declaration
../include/magma_slapack.h:957: error: âFORTRAN_NAMEâ declared as function returning a function
../include/magma_slapack.h:957: warning: parameter names (without types) in function declaration
../include/magma_slapack.h:964: error: âFORTRAN_NAMEâ declared as function returning a function
../include/magma_slapack.h:964: warning: parameter names (without types) in function declaration
../include/magma_slapack.h:972: error: âFORTRAN_NAMEâ declared as function returning a function
../include/magma_slapack.h:972: warning: parameter names (without types) in function declaration
...
magma_sgesv.c: In function main:
magma_sgesv.c:5: error: magma_timestr_t undeclared (first use in this function)
magma_sgesv.c:5: error: (Each undeclared identifier is reported only once
magma_sgesv.c:5: error: for each function it appears in.)
magma_sgesv.c:17: error: magma_err_t undeclared (first use in this function)
I appreciate any ideas.
Please find attached the source file.
Thank you,
Laurentiu
magma_slapack.h: error: FORTRAN_NAME
-
laurentiuduca
- Posts: 5
- Joined: Wed Dec 17, 2014 4:37 am
magma_slapack.h: error: FORTRAN_NAME
- Attachments
-
- magma_sgesv.c
- (2.52 KiB) Downloaded 76 times
-
laurentiuduca
- Posts: 5
- Joined: Wed Dec 17, 2014 4:37 am
Re: magma_slapack.h: error: FORTRAN_NAME
I found the answer. I have forgotten to define fortran mangling in the compile command, so I have added it and it works:
gcc -DADD_ ...
Thanks
gcc -DADD_ ...
Thanks