add deprecation warning for using accelerator offload with INTEL package
This commit is contained in:
@ -72,6 +72,10 @@ if(INTEL_ARCH STREQUAL "KNL")
|
|||||||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
|
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
|
||||||
message(FATAL_ERROR "Must use Intel compiler with INTEL for KNL architecture")
|
message(FATAL_ERROR "Must use Intel compiler with INTEL for KNL architecture")
|
||||||
endif()
|
endif()
|
||||||
|
message(WARNING, "Support for Intel Xeon Phi accelerators and Knight's Landing CPUs "
|
||||||
|
"will be removed from LAMMPS in Summer 2025 due to lack of available machines "
|
||||||
|
"in labs and HPC centers and removed support in recent compilers "
|
||||||
|
"Please contact developers@lammps.org if you have any concerns about this step.")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -xHost -qopenmp -qoffload")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -xHost -qopenmp -qoffload")
|
||||||
set(MIC_OPTIONS "-qoffload-option,mic,compiler,\"-fp-model fast=2 -mGLOB_default_function_attrs=\\\"gather_scatter_loop_unroll=4\\\"\"")
|
set(MIC_OPTIONS "-qoffload-option,mic,compiler,\"-fp-model fast=2 -mGLOB_default_function_attrs=\\\"gather_scatter_loop_unroll=4\\\"\"")
|
||||||
target_compile_options(lammps PRIVATE -xMIC-AVX512 -qoffload -fno-alias -ansi-alias -restrict -qoverride-limits ${MIC_OPTIONS})
|
target_compile_options(lammps PRIVATE -xMIC-AVX512 -qoffload -fno-alias -ansi-alias -restrict -qoverride-limits ${MIC_OPTIONS})
|
||||||
|
|||||||
Reference in New Issue
Block a user