網頁

2018年9月13日 星期四

ubuntu lammps error




1. sudo nautilus複製

2. configure: error: invalid variable name: `–prefix'

./configure --prefix=${HOME}/lib/mpich3-intel --disable-fast CC=gcc CFLAGS=-m64 MPICHLIB_CFLAGS=-O3 --enable-cxx CXX=g++ CXXFLAGS=-m64 MPICHLIB_CXXFLAGS=-O3 --enable-fortran=yes FC=gfortran FCFLAGS=-m64 MPICHLIB_FCFLAGS=-O3 F77=gfortran F77FLAGS=-m64 MPICHLIB_FFLAGS=-O3 --enable-romio

3.

sudo apt install ~/downloads/PlayOnLinux_4.2.12.deb

playonlinux --version

http://blog.topspeedsnail.com/archives/5193

4. mpi
sudo apt install lam4-dev
sudo apt install libmpich-dev
sudo apt install libopenmpi-dev

檢查是否安裝成功
#include <stdio.h>
#include <mpi.h>

int main(int argc, char *argv[])
{
  int n;
  int total;

  MPI_Init(&argc, &argv);
  MPI_Comm_rank(MPI_COMM_WORLD, &n);
  MPI_Comm_size(MPI_COMM_WORLD, &total);
  printf("This is Raspberry Pi %d of %d\n", n+1, total);

  MPI_Finalize();
  return 0;
}

mpicc -o test test.c
mpirun -n 4 ./test

5.
fatal error: jpeglib.h: 沒有此一檔案或目錄
sudo apt-get install libjpeg-dev

fatal error: png.h: 沒有此一檔案或目錄
sudo apt-get install libpng16-dev

6.
../fft3d.h:94:19: fatal error: fftw3.h: 沒有此一檔案或目錄
sudo apt-get install libfftw3-dev

7.
mpirun has detected an attempt to run as root.
不能sudo su的狀態下使用mpirun

沒有留言:

張貼留言