ラベル spack の投稿を表示しています。 すべての投稿を表示
ラベル spack の投稿を表示しています。 すべての投稿を表示

2022年1月24日月曜日

SPACK v0.17 on RH6

From v0.17, spack does not run on RH6.
The first reason is; python2.7 is needed, and the second; clingo needs to be installed by users, instead of bootstrapping.

I use miniconda for python2.7. Clingo can be installed via miniconda as
$ conda install -c potassco clingo

And also you may want to disable bootstraping as;
% spack bootstrap untrust github-actions
%  spack bootstrap disable

Please see
https://spack.io/changes-spack-v017/

2021年10月26日火曜日

heFFTe

 Installation of heFFTe with MKL on SPACK;

% spack install heffte%intel@2021.4.0+mkl ^intel-oneapi-mpi@2021.4.0 ^intel-mkl threads=openmp

To use installed Intel OneAPI and CMAKE on SPACK

In order to avoid multiple installations of Intel-OneAPI and CMAKE, we can use installed ones.
Please install Install OneAPI and CMAKE via APT and put the packages.yaml under ~/.spack/ whose contents are as follows;

 $ cat ~/.spack/packages.yaml

packages:
intel-oneapi-mkl:
buildable: false
externals:
- spec: intel-oneapi-mkl@2021.4.0
prefix: /opt/intel/oneapi/
intel-oneapi-mpi:
buildable: false
externals:
- spec: intel-oneapi-mpi@2021.4.0
prefix: /opt/intel/oneapi/
cmake:
buildable: false
externals:
- spec: cmake@3.16.3
prefix: /usr

buildable: false prevents us from installing packages via SPACK.

2021年8月8日日曜日

Intall Octave with amdblis and amdlibflame with Spack

 spack install octave+hdf5+fftw ^hdf5~mpi ^fftw~mpi ^amdblis threads=openmp ^amdlibflame threads=openmp

To enable threading you need to set OMP_NUN_THREADS=4 (e.g. with 4 cores).

2021年8月2日月曜日

Using pyplot@Plots on Julia@spack

 Using pyplot@Plots on Julia installed via spack is a bit complicated.


We first need to setup Python environment
(actually, you may want to use conda provided by Julia, so, you may do
Julia> ENV["PYTHON"]=""
)

as described in the following link;
https://github.com/JuliaPy/PyCall.jl

and then,

Julia> using Plots
Julia> pyplot()


2021年6月8日火曜日

Illegal instruction by an empty locale????

 I have just got access to a hand-made PC cluster, and I encounter an interesting problem.

A compute node complains of "illegal instruction", while the architecture is almost the same as that of the head node (Sandybridge, and Haswell). Furthermore, I experienced the problem even with binaries compiled on the compute node. That is totally clueless.

When I login (yeah, it is allowed, luckily) to a compute node, I realize that the terminal says

"-bash: warning: setlocale: LC_CTYPE: cannot change locale (ja_JP.utf8): No such file or directory".

I did the following half in doubt, and the "illegal instruction" disappears!;
"export LC_ALL=en_US.utf8"

I do not know what is really going on, but this is my story.


2020年7月15日水曜日

Install GCC 10 with SPACK on Redhat 6

Spack looks good and I am playing around it.
However, the very basic component GCC10 cannot be installed with the following error by default;
"~binutils" conflicts with "gcc@7: arch=linux-rhel6-None" [New GCC cannot use system assembler on RHEL6]

The circumvent is:
% spack install gcc+binutils

Still not completed, but looks installing.