본문 바로가기

LAMMPS

Build of LAMMPS with intel oneAPI and NVCC

intel oneAPI를 메인 C++ 컴파일러로 하는 CUDA 패키지 컴파일을 하기 위해서는 추가 작업이 필요하다.

 

NVCC는 gcc나 clang같은 기본 컴파일러를 host 컴파일러로 사용하므로, intel oneAPI를 사용하기 위해서는 추가 작업이 필요하다.

 

almost always indicates that the host compiler for nvcc cannot find the standard C++ library headers (e.g. <new>). By default, nvcc picks up the same compiler you use for the host build (in this case icpx), but if icpx is not set up for the standard library includes in a way that nvcc expects, it fails with “file not found” for <new>, <iostream>, etc.

 

In other words, nvcc tries to use Intel’s LLVM-based compiler (icpx) as the “host compiler” but does not know where icpx’s C++ headers are located.

 

 

'LAMMPS' 카테고리의 다른 글