Skip to content

Commit

Permalink
add -pthread for linux platform and remove done task
Browse files Browse the repository at this point in the history
  • Loading branch information
zddhub committed Apr 10, 2017
1 parent c46dd30 commit ab49931
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ endif()
set(HAVE_LIBPTHREAD YES)

add_definitions(-std=c++11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")

include_directories(/usr/local/include)
include_directories(..)
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ Recognize input sketch image, you can try it via [web version](http://online.ope
How to install
==============

OpenSSE core library only depends on [OpenCV 3.0.0+](http://opencv.org/), it's a cross-platform library.

You can compile and install it like below:
After installed OpenSSE's dependency - [OpenCV 3.0.0+](http://opencv.org/), You can compile and install it like below:

```sh
mkdir release && cd release
Expand All @@ -52,8 +50,6 @@ More detail info, go to [OpenSSE Wiki](https://github.com/zddhub/opensse/wiki)

Todo List
=========
- [x] Docker support
- [x] Remove boost for core library, done
- [ ] Speed up train steps
- [ ] Recognize sketch
- [ ] Support big image set
Expand Down
2 changes: 0 additions & 2 deletions sse/vocabulary/kmeans.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ class Kmeans
std::size_t changes = 0;

// distribute items on clusters in parallel
// thread_group pool;
std::vector<std::thread> pools(std::thread::hardware_concurrency());
// pools.emplace_back(functor); // pass in the argument of std::thread()

std::size_t idx = 0;
mutex_t mtx;
Expand Down

0 comments on commit ab49931

Please sign in to comment.