- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you help me with compilation pardiso example (pardiso_sym_f.f from mkl library examples)?
-sh-3.1$ ifort pardiso_sym_f.f -o pardiso.x -I /opt/intel/mkl/10.1.0.015/include/ -I /opt/intel/mkl/10.1.0.015/
pardiso_sym_f.f(78): (col. 7) remark: LOOP WAS VECTORIZED.
pardiso_sym_f.f(81): (col. 7) remark: BLOCK WAS VECTORIZED.
pardiso_sym_f.f(106): (col. 7) remark: LOOP WAS VECTORIZED.
pardiso_sym_f.f(133): (col. 7) remark: LOOP WAS VECTORIZED.
/tmp/ifort5nLdf5.o: In function `MAIN__':
pardiso_sym_f.f:(.text+0x188): undefined reference to `pardiso_'
pardiso_sym_f.f:(.text+0x32f): undefined reference to `pardiso_'
pardiso_sym_f.f:(.text+0x477): undefined reference to `pardiso_'
pardiso_sym_f.f:(.text+0x694): undefined reference to `pardiso_'
-sh-3.1$ ifort pardiso_sym_f.f -o pardiso.x -I /opt/intel/mkl/10.1.0.015/include/ -I /opt/intel/mkl/10.1.0.015/
pardiso_sym_f.f(78): (col. 7) remark: LOOP WAS VECTORIZED.
pardiso_sym_f.f(81): (col. 7) remark: BLOCK WAS VECTORIZED.
pardiso_sym_f.f(106): (col. 7) remark: LOOP WAS VECTORIZED.
pardiso_sym_f.f(133): (col. 7) remark: LOOP WAS VECTORIZED.
/tmp/ifort5nLdf5.o: In function `MAIN__':
pardiso_sym_f.f:(.text+0x188): undefined reference to `pardiso_'
pardiso_sym_f.f:(.text+0x32f): undefined reference to `pardiso_'
pardiso_sym_f.f:(.text+0x477): undefined reference to `pardiso_'
pardiso_sym_f.f:(.text+0x694): undefined reference to `pardiso_'
Link Copied
9 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which architecture are you working on? ia32, IA64(aka Itanium) or Intel64.
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Gennady Fedorov (Intel)
Which architecture are you working on? ia32, IA64(aka Itanium) or Intel64.
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MKL_LIB=/opt/intel/mkl/10.1.0.015/lib/64
ifort -w -I /opt/intel/mkl/10.1.0.015/include/ pardiso_sym_f.f -L${MKL_LIB} ${MKL_LIB}/libmkl_solver_lp64.a ${MKL_LIB}/libmkl_intel_lp64.a -Wl,--start-group ${MKL_LIB}/libmkl_intel_thread.a ${MKL_LIB}/libmkl_core.a -Wl,--end-group -L${MKL_LIB} -liomp5 -lpthread -lm -o pardiso_sym_f.out
I'd recommend you to read user's Guide manual, especially chapter 5 "Linking You application with Intel MKL".
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Gennady Fedorov (Intel)
MKL_LIB=/opt/intel/mkl/10.1.0.015/lib/64
ifort -w -I /opt/intel/mkl/10.1.0.015/include/ pardiso_sym_f.f -L${MKL_LIB} ${MKL_LIB}/libmkl_solver_lp64.a ${MKL_LIB}/libmkl_intel_lp64.a -Wl,--start-group ${MKL_LIB}/libmkl_intel_thread.a ${MKL_LIB}/libmkl_core.a -Wl,--end-group -L${MKL_LIB} -liomp5 -lpthread -lm -o pardiso_sym_f.out
I'd recommend you to read user's Guide manual, especially chapter 5 "Linking You application with Intel MKL".
--Gennady
-sh-3.1$ MKL_LIB=/opt/intel/mkl/10.1.0.015/lib/64/
-sh-3.1$ ifort -w -I /opt/intel/mkl/10.1.0.015/include/ pardiso_sym_f.f -L${MKL_LIB} ${MKL_LIB}/libmkl_solver_lp64.a ${MKL_LIB}/libmkl_intel_lp64.a -Wl,--start-group ${MKL_LIB}/libmkl_intel_thread.a ${MKL_LIB}/libmkl_core.a -Wl,--end-group -L${MKL_LIB} -liomp5 -lpthread -lm -o pardiso_sym_f.out
pardiso_sym_f.f(78): (col. 7) remark: LOOP WAS VECTORIZED.
pardiso_sym_f.f(81): (col. 7) remark: BLOCK WAS VECTORIZED.
pardiso_sym_f.f(106): (col. 7) remark: LOOP WAS VECTORIZED.
pardiso_sym_f.f(133): (col. 7) remark: LOOP WAS VECTORIZED.
ld: /opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a(_DftiCreateDescriptorDM1_fortran_lp64.o): warning: sh_link not set for section `.IA_64.unwind'
ld: /opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a(_DftiCreateDescriptorDM1_fortran_lp64.o): warning: sh_link not set for section `.IA_64.unwind'
ld: /opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a(_DftiCreateDescriptorDM1_fortran_lp64.o): warning: sh_link not set for section `.IA_64.unwind'
ld: /opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a(_DftiCreateDescriptorDM1_fortran_lp64.o): warning: sh_link not set for section `.IA_64.unwind'
ld: /opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a(_DftiCreateDescriptorDM1_fortran_lp64.o): warning: sh_link not set for section `.IA_64.unwind'
ld: /opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a(_DftiCreateDescriptorDM1_fortran_lp64.o): warning: sh_link not set for section `.IA_64.unwind'
ld: /opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a(_DftiCreateDescriptorDM1_fortran_lp64.o): warning: sh_link not set for section `.IA_64.unwind'
ld: /opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a(_DftiCreateDescriptorDM1_fortran_lp64.o): warning: sh_link not set for section `.IA_64.unwind'
ld: /opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a(_pardiso_lp64.o): warning: sh_link not set for section `.IA_64.unwind'
ld: /opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a(_pardiso_lp64.o): Relocations in generic ELF (EM: 50)
ld: /opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a(_pardiso_lp64.o): Relocations in generic ELF (EM: 50)
/opt/intel/mkl/10.1.0.015/lib/64//libmkl_intel_lp64.a: could not read symbols: File in wrong format
-sh-3.1$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
File in wrong format!!! It seems you are working on Intel64.
Could you give the output of "cat /proc/cpuinfo" ?
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It seem, I was wrong about architecture. Administrator said it is EM64T=Intel64
And output is:
-sh-3.1$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel Xeon CPU 5140 @ 2.33GHz
stepping : 6
cpu MHz : 2333.420
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 4670.19
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel Xeon CPU 5140 @ 2.33GHz
stepping : 6
cpu MHz : 2333.420
cache size : 4096 KB
physical id : 3
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 4666.84
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel Xeon CPU 5140 @ 2.33GHz
stepping : 6
cpu MHz : 2333.420
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 4666.72
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel Xeon CPU 5140 @ 2.33GHz
stepping : 6
cpu MHz : 2333.420
cache size : 4096 KB
physical id : 3
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 4666.97
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
And output is:
-sh-3.1$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel Xeon CPU 5140 @ 2.33GHz
stepping : 6
cpu MHz : 2333.420
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 4670.19
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel Xeon CPU 5140 @ 2.33GHz
stepping : 6
cpu MHz : 2333.420
cache size : 4096 KB
physical id : 3
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 4666.84
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel Xeon CPU 5140 @ 2.33GHz
stepping : 6
cpu MHz : 2333.420
cache size : 4096 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 4666.72
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel Xeon CPU 5140 @ 2.33GHz
stepping : 6
cpu MHz : 2333.420
cache size : 4096 KB
physical id : 3
siblings : 2
core id : 1
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips : 4666.97
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes, sure, this is Intel 64.
please try the following linking line:
MKL_LIB=/opt/intel/mkl/10.1.0.015/lib/em64t
ifort -w -I /opt/intel/mkl/10.1.0.015/include/ pardiso_sym_f.f -L${MKL_LIB} ${MKL_LIB}/libmkl_solver_lp64.a ${MKL_LIB}/libmkl_intel_lp64.a -Wl,--start-group ${MKL_LIB}/libmkl_intel_thread.a ${MKL_LIB}/libmkl_core.a -Wl,--end-group -L${MKL_LIB} -liomp5 -lpthread -lm -o test.out
--Gennady
please try the following linking line:
MKL_LIB=/opt/intel/mkl/10.1.0.015/lib/em64t
ifort -w -I /opt/intel/mkl/10.1.0.015/include/ pardiso_sym_f.f -L${MKL_LIB} ${MKL_LIB}/libmkl_solver_lp64.a ${MKL_LIB}/libmkl_intel_lp64.a -Wl,--start-group ${MKL_LIB}/libmkl_intel_thread.a ${MKL_LIB}/libmkl_core.a -Wl,--end-group -L${MKL_LIB} -liomp5 -lpthread -lm -o test.out
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Gennady Fedorov (Intel)
yes, sure, this is Intel 64.
please try the following linking line:
MKL_LIB=/opt/intel/mkl/10.1.0.015/lib/em64t
ifort -w -I /opt/intel/mkl/10.1.0.015/include/ pardiso_sym_f.f -L${MKL_LIB} ${MKL_LIB}/libmkl_solver_lp64.a ${MKL_LIB}/libmkl_intel_lp64.a -Wl,--start-group ${MKL_LIB}/libmkl_intel_thread.a ${MKL_LIB}/libmkl_core.a -Wl,--end-group -L${MKL_LIB} -liomp5 -lpthread -lm -o test.out
--Gennady
please try the following linking line:
MKL_LIB=/opt/intel/mkl/10.1.0.015/lib/em64t
ifort -w -I /opt/intel/mkl/10.1.0.015/include/ pardiso_sym_f.f -L${MKL_LIB} ${MKL_LIB}/libmkl_solver_lp64.a ${MKL_LIB}/libmkl_intel_lp64.a -Wl,--start-group ${MKL_LIB}/libmkl_intel_thread.a ${MKL_LIB}/libmkl_core.a -Wl,--end-group -L${MKL_LIB} -liomp5 -lpthread -lm -o test.out
--Gennady
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have another question. It is strange, but actual..
Is it possible to compile the same (pardiso) example under mpi, so that i can execute it with mpirun command?
Unfortunately our cluster doesn't permit running applications directly, only through queue.
Is it possible to compile the same (pardiso) example under mpi, so that i can execute it with mpirun command?
Unfortunately our cluster doesn't permit running applications directly, only through queue.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page