thegooglecodearchive / ddscat

Automatically exported from code.google.com/p/ddscat
0 stars 0 forks source link

ddscat not compiling with ifort and MKL #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Uncomment the makefile settings for ifort with MKL, no openmp, and no MPI
2. make clean -- just to be sure
3. make ddscat -- produces the errors

What is the expected output? What do you see instead?
Well, hopefully the program would compile and I would get a ddscat executable 
with MKL support

What version of the product are you using? On what operating system?
This is with ddscat 7.1.0 on Ubuntu 10.04 32bit with version 11.1 of the ifort 
compiler.

Please provide any additional information below.
It looks like something is just wrong with the makefile...  I have also tried 
openmp + MKL with no luck, although openmp alone worked fine.  Also tried 
reinstalling ifort and was still able to reproduce the above error as well as 
trying to compile on other computers.  Any help would be great.

Lastly, here is exactly what I get from the compiler on attempting to build:

daniel@daniel-desktop:~/ddscat/src$ make clean
rm -f *.o make.out*  *.mod
daniel@daniel-desktop:~/ddscat/src$ make ddscat
cpp -P -traditional-cpp -Dsp ddprecision.f90 \
    ddprecision_cpp.f90
ifort -c -O2 ddprecision_cpp.f90 -o ddprecision.o
rm ddprecision_cpp.f90
ifort -c ddcommon.f90
make: *** No rule to make target `mkl_dfti.f90', needed by `mkl_dfti.mod'.  
Stop.

Original issue reported on code.google.com by DanV...@gmail.com on 17 Jun 2010 at 2:54

GoogleCodeExporter commented 9 years ago
Solution:

As stated in the user guide, "you must obtain the routine mkl_dfti.f90 and 
place a copy in the directory where you are compiling DDSCAT 7.1."

See section 6.5 (page 16) of the user guide for more information.

Also, you may need to add the appropriate "LFLAGS" in your Makefile.  Example 7 
seems to have LFLAGS defined correctly, but example 5 (which you are trying to 
use) leaves LFLAGS undefined.  Example 5 does not compile (even with 
mkl_dfti.f90) if you don't add the appropriate LFLAGS definition.

Again, see the user guide, section 6.5.

Original comment by dsmith2....@gmail.com on 5 Jul 2010 at 11:24