Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Latest Threads
Windows Complie Issue
Forum: MYSTRAN
Last Post: realbabilu
11-18-2022, 10:23 AM
» Replies: 4
» Views: 468
Mystran and Intel One API...
Forum: MYSTRAN
Last Post: Admin
11-17-2022, 02:48 AM
» Replies: 7
» Views: 683
BANDIT Issue
Forum: MYSTRAN
Last Post: Admin
11-08-2022, 02:23 AM
» Replies: 2
» Views: 325
ABAQUS/CalculiX to NASTRA...
Forum: MYSTRAN
Last Post: Admin
10-19-2022, 02:53 PM
» Replies: 2
» Views: 357
OP4 Discussion
Forum: MYSTRAN
Last Post: Admin
10-19-2022, 06:04 AM
» Replies: 1
» Views: 310
CSV Output Discussion
Forum: MYSTRAN
Last Post: Admin
10-18-2022, 08:55 PM
» Replies: 0
» Views: 163
--- DISCORD CHAT ---
Forum: MYSTRAN
Last Post: Admin
10-14-2022, 02:19 AM
» Replies: 0
» Views: 677
--- MAIN OVERVEIW THREAD ...
Forum: MYSTRAN
Last Post: Admin
09-29-2022, 04:41 AM
» Replies: 1
» Views: 882
Actions and Change Log
Forum: MYSTRAN
Last Post: Admin
09-29-2022, 04:38 AM
» Replies: 0
» Views: 243
Major Documentation Updat...
Forum: MYSTRAN
Last Post: Admin
09-26-2022, 11:24 AM
» Replies: 0
» Views: 281

 
  Mystran and Intel One API 2022
Posted by: realbabilu - 11-09-2022, 01:27 AM - Forum: MYSTRAN - Replies (7)

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

Print this item

  ABAQUS/CalculiX to NASTRAN/MYSTRAN Converter
Posted by: Admin - 10-19-2022, 05:29 AM - Forum: MYSTRAN - Replies (2)

TBD

Print this item

  BANDIT Issue
Posted by: Admin - 10-18-2022, 08:58 PM - Forum: MYSTRAN - Replies (2)

Question: Do you have any general plan for modernization of the code? I noticed that in the bandit module there are some features that were already considered obsolete in ISO/IEC 1539-1:1997 (https://gcc.gnu.org/wiki/GFortranStandards#Fortran_90) and later, as is the case with statement GOTO.

Initial Response:
Bandit is an odd one. A couple years ago we had problems with it so afaik we just removed it in essence. It’s a routine that is only used when you enact the banded solver and even then it only helps to optimize the matrix setup so the solution is faster and uses less memory. But that was far more important in the 70s/80s and not such a big deal now. For large problems, we use the superlu sparse solver anyway (so bandit would never come into play). We could totally remove anything to do with bandit and I would be ok with that. I think we may tried, but there were some loose ends so it sort of artificially resides in the program. But it would be nice to totally strip it out clean IMO.

Print this item

  OP4 Discussion
Posted by: Admin - 10-18-2022, 08:55 PM - Forum: MYSTRAN - Replies (1)

F04 is controlled by mystran.ini file, unless WRT_LOG set to >1 inside mystran.ini, F04 file is deleted at completion.

Print this item

  CSV Output Discussion
Posted by: Admin - 10-18-2022, 08:55 PM - Forum: MYSTRAN - No Replies

TBD

Print this item

  Windows Complie Issue
Posted by: Admin - 10-18-2022, 08:41 PM - Forum: MYSTRAN - Replies (4)

There may be some issues with compiling MYSTRAN in Windows. While it appears to be resolvable, can we make this either (a) more bullet-proof or (b) provide some instructions in the trouble shooting section of the build MD here: https://github.com/MYSTRANsolver/MYSTRAN...n/BUILD.md

From the Fortran forum, there is this thread, and the following notable comments:
https://fortran-lang.discourse.group/t/f...er/4529/13

  • As suggested I tried building via MSYS2 (or rather MinGW-w64). That failed because despite a message that CMake 3.23 would be installed, I am stuck with CMake 3.17.
  • Instead, I switched to Cygwin, which does have an up-to-date version on my machine.
  • The configuration step started, but then I got a complaint that submodules had not been downloaded. No indication of what submodules are to be downloaded. There is no indication in the BUILD.md file either.
  • A quick check of the MakeLists.txt file showed a few packages are needed, but there is no information that I can see about where to get the various packages.
  • I was also surprised to see f2c - is that really necessary?
  • The information in BUILD.md suggests though the script will do it. Is that outdated information?

Side note: I find a fairly recent version of CMake in the installation but it does not do much (no output, stops immediately - missing DLLs?). In the MinGW-w64 console a different version is invoked that actually works.

Print this item

  --- DISCORD CHAT ---
Posted by: Admin - 10-14-2022, 02:19 AM - Forum: MYSTRAN - No Replies

While the forums may still be used (for more complex inquiries), the majority of discussions have moved to our Discord server:
https://discord.gg/9k76SkHpHM

Print this item

  Actions and Change Log
Posted by: Admin - 09-29-2022, 04:38 AM - Forum: MYSTRAN - No Replies

ACTIONS:
https://github.com/MYSTRANsolver/MYSTRAN...Actions.md

CHANGE LOG:
Add all changes here (code, compiling, documentation, benchmark, etc.,). Some of this information is later filtered to the appropriate documents after an official release. But this is the MASTER log for developers to add notes to.
https://github.com/MYSTRANsolver/MYSTRAN...angeLog.md

Print this item

  Major Documentation Update
Posted by: Admin - 09-26-2022, 11:24 AM - Forum: MYSTRAN - No Replies

The majority of the documents have been updated and organized. They are found in the Documentation repository here

https://github.com/MYSTRANsolver/MYSTRAN_Documentation

Print this item

  Pre/Post Options for MYSTRAN
Posted by: Admin - 09-21-2022, 01:16 AM - Forum: MYSTRAN - No Replies

For Pre/Post Options for MYSTRAN, see this thread in the "Pre/Post Processors" forum:

https://www.mystran.com/forums/showthread.php?tid=14

Print this item