User Tools

Site Tools


wien2k:インストール_19.1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
wien2k:インストール_19.1 [2019/07/11 18:09]
koudai 作成
wien2k:インストール_19.1 [2021/04/03 03:54]
koudai [準備]
Line 1: Line 1:
-====== 条件 ======+====== 準備 ======
  
 以下のソフトを事前にインストールしてください。 以下のソフトを事前にインストールしてください。
Line 5: Line 5:
   * tcsh   * tcsh
   * XCrySDen   * XCrySDen
-  * FFTW3(MPI版) +  * MPIでコンパイルしたFFTW3 ... <nowiki>--enable-openmp</nowiki> のフラグをつけてコンパイルしたものはうまく行きませんでした
-  * Libxc+
   * C/C++とFortranのコンパイラ。Intel Parallel Studio XE 推奨   * C/C++とFortranのコンパイラ。Intel Parallel Studio XE 推奨
  
Line 20: Line 19:
  
 商用だと50万円くらいしますが、アカデミック版は5万円くらいで買えます。 商用だと50万円くらいしますが、アカデミック版は5万円くらいで買えます。
-===== コンパイル(Ubuntu18.04 + WIEN2k_17.1 + Intel Parallel Studio XE 2018) =====+===== コンパイル(Ubuntu18.04 + WIEN2k_19.1 + Intel Parallel Studio XE 2019) =====
  
 配布されているプログラムをコンパイルします。 配布されているプログラムをコンパイルします。
 [[http://susi.theochem.tuwien.ac.at/reg_user/index.html|WIEN2k-Registered Users]] [[http://susi.theochem.tuwien.ac.at/reg_user/index.html|WIEN2k-Registered Users]]
  
-  * WIEN2k_17.1.tarを入手し、インストールするフォルダに入れる+  * インストール用のフォルダを作る<code> 
 +$ mkdir WIEN2k_19.1 
 +</code> 
 +  * WIEN2k_19.1.tarをインストールするフォルダに入れる
   * インストールするフォルダに入って、HPの手順通りに実行するとコードが展開される<code>   * インストールするフォルダに入って、HPの手順通りに実行するとコードが展開される<code>
-$ tar -xvf WIEN2k_17.1.tar+$ tar -xvf WIEN2k_19.1.tar
 $ gunzip *.gz $ gunzip *.gz
 $ chmod +x expand_lapw $ chmod +x expand_lapw
Line 33: Line 35:
 </code> </code>
     * continue (y/n) y     * continue (y/n) y
-  * (Intelコンパイラを使う場合)siteconfig を開いて -openmp を -qopenmp に修正する 
-  * (Libxcがインストールされていて、かつver.4以降を使う場合)/SRC_lapw0/libxc.f を開いて、下のページのものに置き換える 
-    * [[https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg16924.html]] 
   * コンパイルの設定を行う。[Press RETURN to continue][Hit Enter to continue]はEnterを押すだけなので省略<code>   * コンパイルの設定を行う。[Press RETURN to continue][Hit Enter to continue]はEnterを押すだけなので省略<code>
 $ ./siteconfig $ ./siteconfig
 </code> </code>
-    * もしも Word too long. と表示されて実行できなかったら、siteconfigをvimなどで開いて最初の行を #!/bin/tcsh -f に変更する。 
-    * https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg16030.html 
- 
   - Specify a system   - Specify a system
     - [Selection:] LI     - [Selection:] LI
-  - Specify Compiler +    - Specify compiler and linker options 
-    - [Your compiler:] ifort +      - [Your compiler:] ifort 
-    - [Your compiler:(GNUコンパイラを使う場合)cc (Intelコンパイラを使う場合icc +      - [Your compiler:] cc  (Intelコンパイラは非推奨
-    - [Would you like to use LIBXC (that you have installed)? (y,N):] y +      - Specify LIBXC settings 
-        - [Do you want to automatically search for LIBXC installations? (Y,n):Y +        - [Would you like to use LIBXC (that you have installed)? (y,N):] n 
-        - [Please specify a comma separated list of directories to search! (If no list is entered, /usr/local and /opt will be searched as default):] /opt+      - Specify FFTW settings 
-        - [Is this the correct directory? (Y,n):] y +        - [Do you want to use FFTW (recommended, but for sequential code not required)? (Y,n):] y 
-  Compiling Options (Compiler/LinkerLibraries+        - [Do you want to automatically search for FFTW installations? (Y,n):y 
-    - [To change an item select option. Selection:S+        - [Please specify a comma separated list of directories to search! (If no list is entered, /usr/local and /opt will be searched as default):] /usr/local
 +        - [Please specify whether you want to use FFTW3 (default) or FFTW2  (FFTW3 / FFTW2):] fftw3 
 +        - [Do you want to use a FFTW version from the list above? (Y,n):] y 
 +        [Please enter the line number of the chosen version or enter 0 to manually specify your choice!:] Enter 
 +        - [Please specify the target achitecture of your FFTW library (e.g. lib64) or accept present choice (enter):] **lib** 
 +        - [Please specify the name of your FFTW library or accept present choice (enter):] Enter 
 +        - [Is this correct? (Y,n):] y 
 +        - [Selection:s
   - Configure Parallel Execution   - Configure Parallel Execution
     - [Shared Memory Architecture? (y/N):] y     - [Shared Memory Architecture? (y/N):] y
-    - [(like taskset -c). Enter N / your_specific_command:N+    - [(like taskset -c). Enter N / your_specific_command:n
     - [Do you have MPI, ScaLAPACK, ELPA, or FFTW installed and intend to run finegrained parallel? ... (y/N)] y     - [Do you have MPI, ScaLAPACK, ELPA, or FFTW installed and intend to run finegrained parallel? ... (y/N)] y
     - [Your compiler:] mpiifort     - [Your compiler:] mpiifort
-    - [Do you want to use a present ScaLAPACK installation? (Y,n):] y +    - Specify ScaLAPACK settings 
-    - [Do you want to use the MKL version of ScaLAPACK? (Y,n):] y +      - [Do you want to use a present ScaLAPACK installation? (Y,n):] y 
-    - [Do you use Intel MPI? (Y,n):] y +      - [Do you want to use the MKL version of ScaLAPACK? (Y,n):] y 
-    - [Is this correct? (Y,n):] y +      - [Do you use Intel MPI? (Y,n):] y 
-    - [Do you want to use a present FFTW installation? (Y,n):] y +      - [Is this correct? (Y,n):] y 
-    - [Do you want to automatically search for FFTW installations? (Y,n):] n +    - Specify ELPA settings 
-    - [Please specify whether you want to use FFTW3 (default) or FFTW2  (FFTW3 / FFTW2):] FFTW3 +      - [Do you want to use ELPA? (y,N):] n 
-    - [Please specify the path of your FFTW installation (like /opt/fftw3/) or accept present choice (enter):] (FFTW3のインストールディレクトリを入力。例えば /usr/local/ など) +    - Configure parallel execution 
-    - [Please specify the target achitecture of your FFTW library (e.g. lib64) or accept present choice (enter):] Enter +      - [Please specify your parallel compiler options or accept the recommendations (Enter - default)!:] Enter 
-    - [Please specify the name of your FFTW library or accept present choice (enter):] Enter +      - [Please specify your MPIRUN command or accept the recommendations (Enter - default)!:] Enter 
-    - [Is this correct? (Y,n):] y +      - [Selection:] S 
-    - [Do you want to use ELPA? (y,N):] n +  - (Re-)Dimension parameters
-    - [Please specify your parallel compiler options or accept the recommendations (Enter - default)!:] Enter +
-    - [Please specify your MPIRUN command or accept the recommendations (Enter - default)!:] Enter +
-    - [Selection:] S +
-  - Dimension parameters+
     - [Selection:] Q     - [Selection:] Q
   - Compile/Recompile programs   - Compile/Recompile programs
-    - (Ubuntu18.04かつiccを使う場合) ディレクトリ内のSRC_aimのMakefileを開いて、19行目を %%CC = icc -D__PURE_INTEL_C99_HEADERS__%% に変更する。 
-    - (Ubuntu18.04かつiccを使う場合) ディレクトリ内のSRC_sgropuのMakefileを開いて、20行目を %%FOPT = -D__PURE_INTEL_C99_HEADERS__%% に変更する。 
     - [Selection:] A     - [Selection:] A
   - Perl Path   - Perl Path
Line 101: Line 98:
   - Specify your program to read pdf files (default is acroread) (on some Linux systems use xpdf): evince   - Specify your program to read pdf files (default is acroread) (on some Linux systems use xpdf): evince
   - Set PDFREADER to  evince (Y/n): y   - Set PDFREADER to  evince (Y/n): y
 +  - How many cores do you want to use by default (4):  (パソコンのコア数を入力。コマンドnprocで調べられる)
 +  - Set OMP_NUM_THREADS to  コア数 (Y/n): y
   - Do you want to continue (Y/n)?: y   - Do you want to continue (Y/n)?: y
   - Edit .rhosts file now? (y/N): n   - Edit .rhosts file now? (y/N): n
  
  
wien2k/インストール_19.1.txt · Last modified: 2021/06/27 22:04 (external edit)