Programming Languages on Power

Power Programming Languages

IBM Power, including the AIX, IBM i, and Linux operating systems, support a wide range of programming languages, catering to both traditional enterprise applications and modern development needs.


#Power

 View Only
  • 1.  xlf compiler error

    Posted Thu April 13, 2017 09:55 PM

    Originally posted by: Syler1983


    Hi,

    I tryed to compile fortran code (FFTXlib) using xlf and spectrum mpi and got error:

    Unable to access module symbol file for module fft_scalar. Check path and file permissions of file. Use association not done for this module.

    My compile command:

    mpif90 -u -O1 -qsuffix=cpp=f90 -D__XLF -D__MPI -D__PARA  -I../include  -c fft_parallel.f90

    fft_scalar was built successfully.
    xlf version is 15.1.5.

    Error producing line in the fft_parallel.f90:

    USE fft_scalar ONLY cft_1z, cft_2xy

    Thanks,
    Vladimir


    #Ask-Question-Here--General-Compiler-Q-and-A
    #C/C++andFortran


  • 2.  Re: xlf compiler error

    Posted Thu April 13, 2017 11:46 PM

    Originally posted by: Syler1983


    I fixed it.
    The problem was that xlf can't recognize options -D__XLF -D__MPI -D__PARA.


    #C/C++andFortran
    #Ask-Question-Here--General-Compiler-Q-and-A


  • 3.  Re: xlf compiler error

    Posted Fri April 14, 2017 08:18 PM

    Originally posted by: Rafik_Zurob


    Yes, with XLF you need "-WF," before preprocessor options.  So -WF,-D__XLF -WF,-D__MPI -WF,-D__PARA


    #C/C++andFortran
    #Ask-Question-Here--General-Compiler-Q-and-A