Unverified Commit 70ae5f41 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

tweaks for compiling USER-INTEL in cpu mode on Windows with GCC

parent a7bb772d
Loading
Loading
Loading
Loading
+1 −1
Changes for cmake/CMakeLists.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -1112,7 +1112,7 @@ if(PKG_USER-INTEL)
    list(APPEND LAMMPS_LINK_LIBS ${MKL_LIBRARIES})
  endif()

  if((NOT ${LAMMPS_MEMALIGN} STREQUAL "64") AND (NOT ${LAMMPS_MEMALIGN} STREQUAL "128") AND (NOT ${LAMMPS_MEMALIGN} STREQUAL "256"))
  if((NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows") AND (NOT ${LAMMPS_MEMALIGN} STREQUAL "64") AND (NOT ${LAMMPS_MEMALIGN} STREQUAL "128") AND (NOT ${LAMMPS_MEMALIGN} STREQUAL "256"))
    message(FATAL_ERROR "USER-INTEL only supports memory alignment of 64, 128 or 256")
  endif()

+1 −0
Changes for cmake/presets/mingw-cross.cmake: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -12,3 +12,4 @@ foreach(PKG ${WIN_PACKAGES})
endforeach()
set(DOWNLOAD_VORO ON CACHE BOOL "" FORCE)
set(DOWNLOAD_EIGEN3 ON CACHE BOOL "" FORCE)
set(LAMMPS_MEMALIGN "0" CACHE STRING "" FORCE)