Skip to content

Commit

Permalink
Merge branch 'master' into 15-add-pybind11-bindings-for-core-classes
Browse files Browse the repository at this point in the history
  • Loading branch information
timdewhirst committed Jun 5, 2022
2 parents 1a09939 + 87810c9 commit baeaa01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ These are captured in `vcpkg.json`:
* [vcpkg](https://github.com/Microsoft/vcpkg)
* catch2: unit test framework
* libtiff: TIFF IO support
* spdlog: logging framework
* benchmark: used to run performance benchmarks
* async++ (optional): implements c++17 parallel algorithms
* cxxopts: nice command line parsing
Expand All @@ -183,11 +182,6 @@ These are captured in `vcpkg.json`:
* [average_subtract](examples/average_subtract/README.md): a utility to read in n
images, find the average and write out n new images with the mean subtracted

## Logging

Logging is done via [spdlog](https://github.com/gabime/spdlog), to change the
log level you can use the environmental variable `SPDLOG_LEVEL=<level>`.

# TODO

* build
Expand Down
10 changes: 10 additions & 0 deletions examples/process/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@ int main( int argc, char* argv[] )
};

// check execution
if (thread_count <= 1)
{
logger::info("processing using single thread");
size_t i = 0;
for ( const auto& ia : grid )
{
processor(i++, ia);
}
}
else
#if defined(ASYNCPLUSPLUS)
if ( execution == "async++" )
{
Expand Down

0 comments on commit baeaa01

Please sign in to comment.