Skip to content

Commit ee71c98

Browse files
ivanallenliufeng27
authored and
liufeng27
committed
import span to speed up
1 parent 8db5b32 commit ee71c98

File tree

3 files changed

+602
-5
lines changed

3 files changed

+602
-5
lines changed

examples/eager_op_multithread/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ find_library(TENSORFLOW_LIB tensorflow HINT $ENV{HOME}/libtensorflow2/lib)
55
find_package(Threads REQUIRED)
66

77
set(CMAKE_CXX_STANDARD 17)
8+
#set(CMAKE_CXX_STANDARD 20)
9+
810

911
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -fsanitize=thread")
1012
#set(CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS} -fno-omit-frame-pointer -fsanitize=thread")
1113

1214
add_executable(example main.cpp)
1315
target_include_directories(example PRIVATE ../../include $ENV{HOME}/libtensorflow2/include)
16+
target_link_libraries (example "${TENSORFLOW_LIB}")
1417
target_link_libraries(example "${TENSORFLOW_LIB}" Threads::Threads)

0 commit comments

Comments
 (0)