Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mystran and Intel One API 2022
#1
Hi everyone,

I just new at mystran this year.
For information Intel One API now is free for everyone. Including the Math Kernel Library ,and Vtune
The c++ compiler for compiling SuperLu and fortran compiler for compiling Mystran can be downloaded at https://www.intel.com/content/www/us/en/...nents.html
The MKL can be downloaded at https://www.intel.com/content/www/us/en/...nload.html
alternatively OpenBlas also can be used https://github.com/xianyi/OpenBLAS/relea...21-x64.zip
The Intel compiler required free Visual Studio Community https://visualstudio.microsoft.com/vs/community/
I still learn to create makefile using Cmake for VS and the GCC equations.com. so i jumped without CMAKE

A. USING Visual Studio Windows
Steps :
1. Compile SuperLu.Lib in SRC superlu with c_fortran_dgsvv.c with
Code:
icl -c *.c /O3 /Qpar
with modified Slu_cnames.h for creating obj, then
Code:
xilib /out:superlu.lib *.obj
    compile with optimization like /QaxCORE-AVX2 for intel or /QxCORE-AVX2 for AMD may improve the speed, and /Qpar for parallel run
2. Create the StandardConsole / Quickwin Fortran project
3. Drag all fortran subroutine excluding the "Source\Modules\LAPACK\Unresolved_Externals_Problem" since we will use Openblas / MKL AND  *.H files in include folder
    to the Solution Explorer - Source Files
4. Edit GET_MYSTRAN_DIR.f90
   
Code:
CALL GETENV ( 'MYSTRAN_directory', MYSTRAN_DIR )
to 
Code:
CALL get_environment_variable  ( 'MYSTRAN_directory', MYSTRAN_DIR )
    Hope this call get_environment_variable is used in the next mystran, since it used also in gcc.
5. For mkl --> in Solution --> right click Properties » Configuration properties » Fortran  » Use Intel MKL » Sequential or Parallel  --> if /Qpar then Parallel
    For OpenBlas drag Openblas.dll.a and with all *.h to the Solution Explorer - Source Files
    compile with optimization like /QaxCORE-AVX2 for Intel or /QxCORE-AVX2 for AMD may improve the speed
6. For big problems, it could catch stack overflow, move all stack to heap.
  in Solution --> Properties » Fortran » Configuration properties » Optimization » Heap Arrays » 0
7. You will get the exe file.

B. Using command line Intel compiler x64 enviroment
a. Get mystran latest source code put in d:\mystran --> d:\mystran\mystran-main\
a. Get superLu latest, put on SRC folder with FORTRAN d_fortran_dgssv.c  and modified SLU_Cnames.h on SuperLu folder d:\mystran\mystran-main\superlu
b. Get into CMD command lines intel x64 Compiler
c. Get 2 Batch file to run in d:\mystran
    compile_mystran_superlu_with_mkl_AVX2_Parallel.bat https://controlc.com/f266943f
    mystran.rsp  https://controlc.com/32578204
d. Get mystran.exe inside x64/Release


Questions
1. SuperLu-MT cant be used here, right?
2. Can i get the built MingW GCC makefile? that compiled in msys or mingw, so i can changed to be compiled in the equations mingw compiler

NOTE: Modified SLU_Cnames.h inside SRC SuperLU dir for Visual Fortran
Code:
/* Fortran interface */
#define c_bridge_dgssv_ C_BRIDGE_DGSSV
#define c_fortran_sgssv_ C_FORTRAN_SGSSV
#define c_fortran_dgssv_ C_FORTRAN_DGSSV
#define c_fortran_cgssv_ C_FORTRAN_CGSSV
#define c_fortran_zgssv_ C_FORTRAN_ZGSSV
Reply


Messages In This Thread
Mystran and Intel One API 2022 - by realbabilu - 11-09-2022, 01:27 AM
RE: Mystran and Intel One API 2022 - by Admin - 11-09-2022, 02:13 PM
RE: Mystran and Intel One API 2022 - by ceanwang - 11-16-2022, 10:54 AM
RE: Mystran and Intel One API 2022 - by Admin - 11-16-2022, 05:36 AM
RE: Mystran and Intel One API 2022 - by ceanwang - 11-17-2022, 01:46 AM
RE: Mystran and Intel One API 2022 - by Admin - 11-17-2022, 02:48 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)