From 1722f4cbb03067f62258e44a62b10b020077a06f Mon Sep 17 00:00:00 2001 From: Marcin Junczys-Dowmunt Date: Mon, 18 Apr 2016 19:54:46 +0200 Subject: [PATCH] synchronize message --- CMakeLists.txt | 2 +- src/decoder/decoder_main.cu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ca5a6c5..9bbd33b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ endif(Boost_FOUND) set(EXT_LIBS ${EXT_LIBS} /home/marcinj/Badania/kenlm/build/lib/libkenlm.a) set(EXT_LIBS ${EXT_LIBS} /home/marcinj/Badania/kenlm/build/lib/libkenlm_util.a) include_directories(/home/marcinj/Badania/kenlm) -add_definitions(-DKENLM_MAX_ORDER=9) +add_definitions(-DKENLM_MAX_ORDER=6) #find_package (OpenMP) #if (OPENMP_FOUND) diff --git a/src/decoder/decoder_main.cu b/src/decoder/decoder_main.cu index 79b66c0d..a23aea21 100644 --- a/src/decoder/decoder_main.cu +++ b/src/decoder/decoder_main.cu @@ -111,10 +111,10 @@ int main(int argc, char* argv[]) { { ThreadPool devicePool(devices.size()); for(size_t i = 0; i < devices.size(); ++i) { + std::cerr << "Loading model " << modelPath << " onto gpu" << devices[i] << std::endl; devicePool.enqueue([i, &devices, &modelsPerDevice, &modelPaths]{ cudaSetDevice(devices[i]); for(auto& modelPath : modelPaths) { - std::cerr << "Loading model " << modelPath << " onto gpu" << devices[i] << std::endl; modelsPerDevice[i].emplace_back(new Weights(modelPath, devices[i])); } });