Skip to content

Commit 9f54d6b

Browse files
committed
Fail if OpenMP is not found.
1 parent aa5c190 commit 9f54d6b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ endif()
7575
find_package(Torch REQUIRED)
7676

7777
if(USE_OPENMP)
78-
find_package(OpenMP)
79-
if (NOT OpenMP_CXX_FOUND)
80-
message(WARNING "OpenMP support is disabled.")
81-
endif()
78+
find_package(OpenMP REQUIRED)
8279
endif()
8380

8481
# TORCH_CXX_FLAGS contains the same -D_GLIBCXX_USE_CXX11_ABI value as PyTorch

0 commit comments

Comments
 (0)