監視対象
- CentOS 7
- Ubuntu 16.04
※それぞれRHEL/Fedora, Debian系その他でも大丈夫だと思われます。
| #!/bin/sh | |
| LISTS=`ls -l /var/lib/mailman/lists | grep ^d | awk '{print $9;}'` | |
| for list in $LISTS | |
| do | |
| /usr/lib/mailman/bin/arch $list | |
| done |
| // Intel MKL (Intel Compiler/Intel MPI) is required | |
| // compile as `mpiicpc -std=c++11 -mkl=cluster scalapack_different_context_distribution.cpp` | |
| // run as `mpirun -np 16 ./a.out` | |
| // Reference: http://www.netlib.org/scalapack/explore-html/de/d4f/pzgemrdrv_8c_source.html | |
| // | |
| // ctx_src: ctx_dst: | |
| // [ 0 1 2 3 ] [ 0 1 ] | |
| // [ 4 5 6 7 ] => [ 2 3 ] | |
| // [ 8 9 10 11 ] | |
| // [ 12 13 14 15 ] |
| #include <mpi.h> | |
| #include <unistd.h> | |
| #include <iostream> | |
| int main(int argc, char* argv[]) | |
| { | |
| MPI_Init(&argc, &argv); | |
| int rank, size; | |
| MPI_Comm_rank(MPI_COMM_WORLD, &rank); |
| #ifndef UUID_6DBD3348_8ECE_4541_A1E1_3D5EBF9C3BD8 | |
| #define UUID_6DBD3348_8ECE_4541_A1E1_3D5EBF9C3BD8 | |
| #include <complex> | |
| #include <magma.h> | |
| // MAGMA type wrapper for using std::complex | |
| /* | |
| * T -> magma_type_wrapper<T>::type | |
| * --------------------------------------------------- |
| # CMakeLists.txt for checking variables set by Find*** in CMake | |
| # | |
| # Target packages: MPI, OpenMP, CUDA, (BLAS,) LAPACK, HDF5 | |
| # | |
| # Referenced variables are based on CMake v3.0 | |
| # http://www.cmake.org/cmake/help/v3.0/manual/cmake-modules.7.html | |
| # | |
| # How to use | |
| # 1. create an empty folder | |
| # 2. locate this file to it as `folder/CMakeLists.txt` |