simplify compiling USER-INTEL package, by defaulting to -DLAMMPS_MEMALIGN=64 in case it is not set
This commit is contained in:
@ -28,12 +28,10 @@
|
||||
#ifndef LMP_INTEL_PREPROCESS_H
|
||||
#define LMP_INTEL_PREPROCESS_H
|
||||
|
||||
#ifndef LAMMPS_MEMALIGN
|
||||
#error Please set -DLAMMPS_MEMALIGN=64 in CCFLAGS for your LAMMPS makefile.
|
||||
#else
|
||||
#if (LAMMPS_MEMALIGN != 64)
|
||||
#error Please set -DLAMMPS_MEMALIGN=64 in CCFLAGS for your LAMMPS makefile.
|
||||
#endif
|
||||
// LAMMPS_MEMALIGN is set to 64 by default for -DLMP_USER_INTEL
|
||||
// so we only need to error out in case of a different alignment
|
||||
#if LAMMPS_MEMALIGN && (LAMMPS_MEMALIGN != 64)
|
||||
#error Please set -DLAMMPS_MEMALIGN=64 in CCFLAGS of your LAMMPS makefile for USER-INTEL package
|
||||
#endif
|
||||
|
||||
#if defined(_OPENMP)
|
||||
|
||||
@ -22,6 +22,10 @@
|
||||
#include "tbb/scalable_allocator.h"
|
||||
#endif
|
||||
|
||||
#if defined(LMP_USER_INTEL) && !defined(LAMMPS_MEMALIGN)
|
||||
#define LAMMPS_MEMALIGN 64
|
||||
#endif
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
@ -48,6 +48,10 @@ methods:
|
||||
#ifndef LAMMPS_MY_PAGE_H
|
||||
#define LAMMPS_MY_PAGE_H
|
||||
|
||||
#if defined(LMP_USER_INTEL) && !defined(LAMMPS_MEMALIGN)
|
||||
#define LAMMPS_MEMALIGN 64
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
namespace LAMMPS_NS {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user