Skip to content

Commit 53dc7f7

Browse files
committed
remove nep_cpu; update test case and toolchain script
1 parent 2a2442d commit 53dc7f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+70
-123
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ if(DEFINED NEP_DIR)
659659

660660
if(NEP_FOUND)
661661
add_compile_definitions(__NEP)
662-
target_link_libraries(${ABACUS_BIN_NAME} NEP::nep_cpu)
662+
target_link_libraries(${ABACUS_BIN_NAME} NEP::nep)
663663
endif()
664664
endif()
665665

cmake/FindNEP.cmake

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
###############################################################################
2-
# - Find NEP_CPU
3-
# Finds the NEP_CPU header and library.
2+
# - Find NEP
3+
# Finds the NEP header and library.
44
#
5-
# This module will search for the NEP_CPU library, looking for a hint
5+
# This module will search for the NEP library, looking for a hint
66
# from the NEP_DIR environment variable or CMake variable.
77
#
88
# This module defines the following variables:
99
#
10-
# NEP_FOUND - True if the NEP_CPU library and headers were found.
10+
# NEP_FOUND - True if the NEP library and headers were found.
1111
# NEP_INCLUDE_DIR - The directory where nep.h is located.
12-
# NEP_LIBRARY - The full path to the NEP_CPU library.
12+
# NEP_LIBRARY - The full path to the NEP library.
1313
#
1414
# It also defines the following imported target:
1515
#
16-
# NEP::nep_cpu - The NEP_CPU library target.
16+
# NEP::nep - The NEP library target.
1717
#
1818
###############################################################################
19+
# Note: Currently only CPU version is supported, Since the NEP interface with GPU support is not available yet.
20+
# In feature, if available, we can use USE_CUDA to switch between CPU and GPU version.
1921

2022
find_path(NEP_INCLUDE_DIR nep.h
2123
HINTS ${NEP_DIR}
2224
PATH_SUFFIXES "include"
2325
)
2426

2527
find_library(NEP_LIBRARY
26-
NAMES nepcpu
28+
NAMES nep
2729
HINTS ${NEP_DIR}
2830
PATH_SUFFIXES "lib"
2931
)
@@ -34,9 +36,9 @@ find_package_handle_standard_args(NEP
3436
NEP_LIBRARY NEP_INCLUDE_DIR)
3537

3638
if(NEP_FOUND)
37-
if(NOT TARGET NEP::nep_cpu)
38-
add_library(NEP::nep_cpu UNKNOWN IMPORTED)
39-
set_target_properties(NEP::nep_cpu PROPERTIES
39+
if(NOT TARGET NEP::nep)
40+
add_library(NEP::nep UNKNOWN IMPORTED)
41+
set_target_properties(NEP::nep PROPERTIES
4042
IMPORTED_LINK_INTERFACE_LANGUAGES "C"
4143
IMPORTED_LOCATION "${NEP_LIBRARY}"
4244
INTERFACE_INCLUDE_DIRECTORIES "${NEP_INCLUDE_DIR}"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)