Skip to content

Commit a2f1a32

Browse files
author
Yucheng Low
authored
Merge pull request turi-code#361 from turi-code/nano-2
more nanomsg fixes
2 parents 74d1695 + f8e479f commit a2f1a32

File tree

5 files changed

+13
-35
lines changed

5 files changed

+13
-35
lines changed

CMakeLists.txt

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,14 @@ endif()
9696
set(MINGW_ROOT "/mingw64/bin")
9797
# Separate variable so that cython's CMakeLists.txt can use it too
9898
if (WIN32)
99-
set(INSTALLATION_SYSTEM_BINARY_FILES ${CMAKE_SOURCE_DIR}/deps/local/bin/libzmq.dll
100-
${CMAKE_SOURCE_DIR}/deps/local/bin/libsodium-13.dll
99+
set(INSTALLATION_SYSTEM_BINARY_FILES
101100
${MINGW_ROOT}/libiconv-2.dll
102101
${MINGW_ROOT}/libssh2-1.dll
103102
${MINGW_ROOT}/zlib1.dll
104103
${MINGW_ROOT}/libwinpthread-1.dll
105104
${MINGW_ROOT}/libgcc_s_seh-1.dll
106105
${MINGW_ROOT}/libstdc++-6.dll
107106
${MINGW_ROOT}/libeay32.dll)
108-
else()
109-
if (EXISTS ${CMAKE_SOURCE_DIR}/deps/local/lib64/libgomp.so.1)
110-
list(APPEND INSTALLATION_SYSTEM_BINARY_FILES ${CMAKE_SOURCE_DIR}/deps/local/lib64/libgomp.so.1)
111-
endif()
112107
endif()
113108

114109

@@ -131,27 +126,10 @@ add_definitions(-DFUSION_MAX_VECTOR_SIZE=20)
131126
#* Locate OpenMP */
132127
#* */
133128
#**************************************************************************/
134-
if (EXISTS ${CMAKE_SOURCE_DIR}/deps/local/lib/libgomp.so)
135-
add_library(libgomp.so SHARED IMPORTED)
136-
set_property(TARGET libgomp.so PROPERTY IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/deps/local/lib/libgomp.so)
137-
add_library(openmp INTERFACE)
138-
139-
target_compile_options(openmp INTERFACE "-fopenmp")
140-
target_link_libraries(openmp INTERFACE libgomp.so)
141-
message(STATUS "OpenMP Library Found")
142-
elseif (EXISTS ${CMAKE_SOURCE_DIR}/deps/local/lib64/libgomp.so)
143-
add_library(libgomp.so SHARED IMPORTED)
144-
set_property(TARGET libgomp.so PROPERTY IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/deps/local/lib64/libgomp.so)
145-
146-
add_library(openmp INTERFACE)
147-
target_compile_options(openmp INTERFACE "-fopenmp")
148-
target_link_libraries(openmp INTERFACE libgomp.so)
149-
message(STATUS "OpenMP Library Found")
150-
else()
151-
add_library(openmp INTERFACE)
152-
target_compile_definitions(openmp INTERFACE __NO_OPENMP__)
153-
message(WARNING "OpenMP Libraries were not found")
154-
endif()
129+
# disable openmp
130+
add_library(openmp INTERFACE)
131+
target_compile_definitions(openmp INTERFACE __NO_OPENMP__)
132+
message(WARNING "OpenMP Libraries were not found")
155133

156134
#**************************************************************************/
157135
#* */

configure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ GRAPHLAB_HOME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
88
DEPS_PREFIX=$PWD/deps/local
99

1010
if [[ $OSTYPE == linux* ]]; then
11-
DEFAULT_DATO_DEPS_VERSION=11
11+
DEFAULT_DATO_DEPS_VERSION=12
1212
elif [[ $OSTYPE == darwin* ]]; then
13-
DEFAULT_DATO_DEPS_VERSION=11
13+
DEFAULT_DATO_DEPS_VERSION=12
1414
elif [[ $OSTYPE == msys ]]; then
15-
DEFAULT_DATO_DEPS_VERSION=11
15+
DEFAULT_DATO_DEPS_VERSION=12
1616
fi
1717

1818

oss_test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ subdirs(
66
logger
77
timer
88
random
9-
fault
9+
# fault
1010
nanosockets
1111
fileio
1212
graphlab

oss_test/lambda/dummy_worker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <cppipc/cppipc.hpp>
1818
#include <process/process_util.hpp>
1919
#include "dummy_worker_interface.hpp"
20-
#include <fault/sockets/socket_config.hpp>
20+
#include <nanosockets/socket_config.hpp>
2121
#include <thread>
2222

2323
using namespace graphlab;
@@ -44,7 +44,7 @@ int main(int argc, char** argv) {
4444
// Manually set this one.
4545
char* use_fallback = std::getenv("GRAPHLAB_FORCE_IPC_TO_TCP_FALLBACK");
4646
if(use_fallback != nullptr && std::string(use_fallback) == "1") {
47-
libfault::FORCE_IPC_TO_TCP_FALLBACK = true;
47+
nanosockets::FORCE_IPC_TO_TCP_FALLBACK = true;
4848
}
4949

5050
size_t parent_pid = get_parent_pid();

oss_test/lambda/worker_pool_test.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <lambda/worker_pool.hpp>
2020
#include <parallel/lambda_omp.hpp>
2121
#include <fileio/fs_utils.hpp>
22-
#include <fault/sockets/socket_config.hpp>
22+
#include <nanosockets/socket_config.hpp>
2323
#include "dummy_worker_interface.hpp"
2424

2525
using namespace graphlab;
@@ -32,7 +32,7 @@ class worker_pool_test: public CxxTest::TestSuite {
3232
// Manually set this one.
3333
char* use_fallback = std::getenv("GRAPHLAB_FORCE_IPC_TO_TCP_FALLBACK");
3434
if(use_fallback != nullptr && std::string(use_fallback) == "1") {
35-
libfault::FORCE_IPC_TO_TCP_FALLBACK = true;
35+
nanosockets::FORCE_IPC_TO_TCP_FALLBACK = true;
3636
}
3737
}
3838
void test_spawn_workers() {

0 commit comments

Comments
 (0)