Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Compiling Calculix

Ajay_T_
Beginner
242 Views

hello,

We use an open source software called Calculix. I wanted to test it using intel PARDISO to speed up some of the computations. I downloaded the Intel Parralel studio linux version to evaluate the capabilities of the PARDISO in my applications. I compiled the code using intel compilers and it seems to create an exe with out any diffculty. My make file looks like below. but when i run the executable it just exits without any error code. 

My class mate in the past has compiled successfully with the evaluation version of Intel parallel studio and  used the PARDISO. I am not sure where I am doing wrong.

 

CFLAGS = -Wall -O3 -DARCH="Linux" -DPARDISO -DMATRIXSTORAGE -DUSE_MT-DLONGLONG
FFLAGS = -Wall -O3 -fopenmp -m64 $(OPTIONS) -I$(MKL_INCLUDE) -fdefault-integer-8

CC=gcc
FC=gfortran

OPTIONS = -w -fno-second-underscore -fcray-pointer -x f77-cpp-input
FPPSTOP=-x none

MKL_LIB = /opt/intel/composer_xe_2015.3.187/mkl/lib/intel64
MKL_INCLUDE = /opt/intel/composer_xe_2015.3.187/mkl/include
CMPLR_PATH = /opt/intel/composer_xe_2015.3.187/compiler/lib/intel64

# BLAS and LAPACK
LDFLAGS    += -llapack -lblas 

.c.o :

    $(CC) $(CFLAGS) -c $<

.f.o :

    $(FC) $(FFLAGS) -c $<

include Makefile.inc

SCCXMAIN = ccx_2.8p2.c

OCCXF = $(SCCXF:.f=.o)

OCCXC = $(SCCXC:.c=.o)

OCCXMAIN = $(SCCXMAIN:.c=.o)


ccx_2.8p2: $(OCCXMAIN) ccx_2.8p2.a \
    ./date.pl; $(CC) $(CFLAGS) -c ccx_2.8p2.c; \
    $(FC) $(FFLAGS) -o $@ $(FPPSTOP) $(OCCXMAIN) ccx_2.8p2.a \
    -Wl,--start-group \
    $(MKL_LIB)/libmkl_intel_lp64.a \
    $(MKL_LIB)/libmkl_intel_thread.a \
    $(MKL_LIB)/libmkl_core.a \
    -L"$(CMPLR_PATH)" \
    -Wl,--end-group \
    -liomp5 -lpthread -lm -ldl


ccx_2.8p2.a: $(OCCXF) $(OCCXC)
    ar vr $@ $?
clean:
    rm *.a *.o

thanks

 

0 Kudos
0 Replies
Reply