- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello sir,
Presently my system is xeon E5520 2.27 gz and 24 gB RAM---windows 64 bit OS
I am using pardiso solverto solve around 600000 equation.
It is taking 5 minutes for each iteration. which i have to for many times
For my problem i need to stillincreasethe number ofequation.
In our institiute we have very good system with many processors.,
but it is having linux installed in it.
I want to ask whether my present code which is running on windows platform
can be used on linux platform, or i have to change it.
If i need to change what i have to change.
I am new to linux environment
please help
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
if you use the Intel compiler(s), either C or Fortran, in most cases, you just need to rebuild the application on Linux. Obviously, if you have calls to windows APIs, these must be replaced (some of them can be replaced by calling functions from IPORT library if you used Fortran, so then code is perfectly portable).
In any case you'll need a makefile, which will build and link to MKL library. If you use C/C++, Intel C++ compiler nicely integrates with Eclipse and it provides help on building the executable. If you use Fortran, and programmed with modules, then my advice is to copy the order of compiled files from VS (as on windows the interdependence of module is automatically resolved) while creating you makefile. This will save you a lot of frustration, especially if the code is complex.
If you need more assistance, post a bit more more specific problems/questions here, so somebody can offer better advice.
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello sir,
I am very much new to linux
I have installed the file l_cprof_p_11.1.069 on ubuntu.
I am not understanding from where to start.
Can you please tell the basic steps from where to start.
My program is purely using fortran77 language
i am able compile my code with following command on the command line on windows 64 bit
ifort /F800000000 model3d.for mkl_solver_lp64.lib mkl_intel_lp64_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib -Qopenmp
please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
this should be (relatively) easy. You have F77, so no modules, no anything.
First of all, verify that installation of the compiler is OK.
(1) Open command window, then use command line and command cd (change directory) (or something equivalent) to navigate to location of your source file(s).
(2) type
ifort -c model3d.for
this should only compile the file. If this passes with no errors/warnings, then installation should be fine.
(3) type
ifort model3.for -L -lmkl_solver_lp64 ...... and rest of your libraries.
You can take a look at makefiles in examples directory of MKL.
I have no time today to write more, but should be able to post more details by tomorrow. Try step (1) and (2) anyway, so we know that installation is OK.
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Below is a short example of makefile for you. I updated it to reflect your setting, however, not sure whether it can run (I might to forget about something). Consult Link Advisor if something goes wrong. Save it as text file in the folder where the model3d.for file is. Then navigate (using command line window) to the folder where you saved it. Then type
model3d -f makefile
Once the executable is build, type
./model3d
This will run the code.
----------------------------------------------------------
.SUFFIXES:
.SUFFIXES: .o .f90 .mod
# bind source(s)
SRC = model3d.for
# directories
OUTDIR = release/
INTDIR = release/
MKL_PATH = /opt/intel/Compiler/11.1/064 (replace with the folder of your MKL)
# build
model3d: makefile $(SRC)
ifort -o $@ -ipo -O3 -no-prec-div -xHost -parallel -auto -ccdefault fortran -warn all -module $(INTDIR) $(SRC) -liomp5 -L$(MKL_PATH) -lmkl_lapack -lmkl_core -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_solver_lp64 -static-intel
-------------------------------------------------------------
what about ilp64? You sure you're going to use lp64?
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello sir,
I am getting the following error
bash: ifort: command not found
My os is ubuntu 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
probably you didn't setup ("source") ifort script for your working shell. The script names are either ifortvars.sh or ifortvars.cs. You can find them in /opt/intel/fc/xxxxx/bin, where xxx is your version number. try to run (source) it and then try again to use command line. The description is in the user's guide.
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have done it
source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32
i did not get any error
Still i get the same error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As Gennady showed, intel64 is what you want. I thought you have x64 architecture, don't you?
You mean, you opened command window, typed
source ..... intel64
command and this setup was OK. then if you try to type command
ifort
you get the error that ifort not found.
Gennady, is the Ubuntu supported now? If I recall correctly some people had issues at the time it was not supported (if it is now), related to bash/dash bizzarre issues. How is it now?
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i opened the terminal and typed
source /opt/intel/Compiler/11.1/046/bin/ifortvars.sh ia32
it did not show any error, but still i get the previous error
Presently i am trying to run on ia32 only After it
works i will be going to 64 architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well. If source didn't make any complains then.....
I understand that if you type
ifort -v
you also get :command not found error.
If this is a case, so definitely something is wrong with your installation. I'm afraid you need to ask somebody at your Department to help you with that (I mean installation).
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Artur, sorry, i missed this question. Yes,
the latest version of MKL supports Ubuntu* 8.10 (IA-32 / Intel 64).
See the Release Notes for MKL 10.2 update 4:
Following is the list of supported operating systems:
..............
Ubuntu* 8.10 (IA-32 / Intel 64)
the same for C/C++ compiler for Linux:
Since verion 11 update2 started to support
Ubuntu* 9.04 now supported
--Gennady

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