Skip to content

Commit

Permalink
Fix Monte Carlo test for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jszuppe committed Apr 23, 2017
1 parent 9e48400 commit debbd92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -22,7 +22,7 @@ env:
- AMDAPPSDKROOT=${OPENCL_ROOT}/AMDAPPSDK
# Global build options and C++ flags
- CMAKE_OPTIONS="-DBOOST_COMPUTE_BUILD_TESTS=ON -DBOOST_COMPUTE_BUILD_EXAMPLES=ON -DBOOST_COMPUTE_BUILD_BENCHMARKS=ON -DBOOST_COMPUTE_USE_OFFLINE_CACHE=ON -DBOOST_COMPUTE_HAVE_OPENCV=ON -DBOOST_COMPUTE_THREAD_SAFE=ON"
- CXX_FLAGS="-Wall -pedantic -Werror -Wno-variadic-macros -Wno-long-long -Wno-shadow"
- CXX_FLAGS="-Wall -pedantic -Werror -Wno-variadic-macros -Wno-long-long -Wno-shadow -DCI_BUILD"
# Boost
- BOOST_VERSION=default
# Misc
Expand Down
5 changes: 5 additions & 0 deletions example/monte_carlo.cpp
Expand Up @@ -32,8 +32,13 @@ int main()
using compute::uint_;
using compute::uint2_;


#ifdef CI_BUILD // lower number of points for CI builds
size_t n = 2000;
#else
// ten million random points
size_t n = 10000000;
#endif

// generate random numbers
compute::default_random_engine rng(queue);
Expand Down

0 comments on commit debbd92

Please sign in to comment.