Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CMakeLists.txt: add_library to kp_add_library Sampler's CMakeLists.txt: add_library to kp_add_library * kp_core.hpp: remove pointer from ptpi * kp_sampler_skip.cpp: pass by value kokkosp_p_t_p_i kp_sampler_skip.cpp: last parameter should be passed by value rather than pointer in kokkosp_p_t_p_i * kp_sampler_skip.cpp: remove dereference assignment for ptpi callback * kp_core.hpp: apply clang-format * Create test_sampler.cpp * CMakeLists.txt: set up test for sampler * test_sampler.cpp: put in code for sampler test * test_sampler.cpp: typo in comment (2 invocation --> 2 invocations) * CMakeLists.txt: support sampler test * kp_sampler_skip.cpp: change printf to std::out for ctests * kp_sampler_skip.cpp: include iostream for std::cout * Update kp_sampler_skip.cpp: \n instead of std::endl \n is faster for performance * kp_sampler_skip.cpp: apply clang format * kp_sampler_skip.cpp: fix for std::out of tool-invoked fence verbose debug print * kp_sampler_skip.cpp: apply clang format * Rename test_sampler.cpp to test_parfor.cpp * Update CMakeLists.txt: reduce and scan sampling tests * Create test_parreduce.cpp * Create test_parscan.cpp * Update test_parreduce.cpp: parallel_reduce function Test based on example shown at: https://kokkos.org/kokkos-core-wiki/API/core/parallel-dispatch/parallel_reduce.html * test_parscan.cpp: put in test for sampling parallel_scan Parallel scan sampling test based on example here: https://kokkos.org/kokkos-core-wiki/API/core/parallel-dispatch/parallel_scan.html * Update test_parreduce.cpp: fix x[i] to x(i) View index access of x does not use [] * Update test_parreduce.cpp: Kokkos:: for View * test_parreduce.cpp: reduce lambda * Update test_parscan.cpp: operator for cuda/hip build * test_parscan.cpp: support scan test function * test_parreduce.cpp: reduction operator second argument second argument * test_parscan.cpp: fix scan test operator * Update test_parscan.cpp: fix scan test to have to Views * test_parscan.cpp: policy to size * Update kp_kernel_logger.cpp: fix typo for scan callback The typo was kokkospk_end_parallel_scan. This causes the third test for the sampler to fail. * test_parscan.cpp: apply clang format * test_parreduce.cpp: apply clang format * CMakeLists.txt: add_library -> kp_add_library * kp_sampler_skip.cpp: put in prob samplr * CMakeLists.txt: sampling prob test * Create test_parfor_prob.cpp * Create test_parreduce_prob.cpp * Create test_parscan_prob.cpp * test_parfor_prob.cpp: edit matchers for prob sampling * test_parreduce_prob.cpp: fix matchers * Update test_parscan_prob.cpp: fix parscan test matchers * Update test_parscan_prob.cpp: fix test comments * test_parfor_prob.cpp: fix comments * Update test_parreduce_prob.cpp: fix comments * test_parfor.cpp: update matcher * Update test_parscan.cpp: fix matchers * test_parreduce.cpp: matchers fix * Update kp_sampler_skip.cpp: add cout for end_parallel_xxx * Update test_parfor.cpp: put in finished with end in matchers * Update test_parscan.cpp: update matchers / comments removal * test_parreduce.cpp: fix matchers * Update kp_sampler_skip.cpp: fix elipses * test_parscan.cpp: apply clang format * CMakeLists.txt: skip rate is 0 * test_parscan.cpp: apply clang format * test_parfor_prob.cpp: apply clang format * Update README.md: add sampler entry * test_parreduce_prob.cpp: apply clang format * kp_sampler_skip.cpp: apply clang format * README.md: sampler README for probability * test_parreduce.cpp: fix int ref in operator * test_parscan.cpp: int ref in operator * test_parscan.cpp: long int in signature * test_parreduce.cpp: long int in second argument to operator * Update test_parreduce.cpp: change sum to int type * Update test_parreduce.cpp: declare sum as long int * Update kp_kernel_logger.cpp: kokkospk_end_parallel_scan --> kokkosp_end_parallel_scan * Update README.md Co-authored-by: Daniel Arndt <[email protected]> * Update test_parfor.cpp * test_parfor.cpp: put in fence test * Update test_parfor.cpp: put in checks for number of calls and Null Ptr fence * test_parfor.cpp: apply clang format * fix test par for * test_parfor.cpp: apply clang format * kp_sampler_skip.cpp: fix sampler std::cout prints for test * test_parfor.cpp: apply clang format * test_parfor.cpp: fixing matcher string for number contains * Update test_parfor.cpp: not substr * test_parfor.cpp: apply clang format * kp_sampler_skip.cpp: apply clang format * test_parfor.cpp: apply clang format * test_parfor.cpp: apply clang format * Update test_parfor.cpp * test_parfor.cpp: apply clang format * test_parfor.cpp: Times function * delete file accidentally put in tests directory * Update test_parfor.cpp: remove AtMost * Update test_parfor.cpp: remove using AtMost * kp_sampler_skip.cpp: put back in * Update test_parreduce.cpp * test_parfor.cpp: remove count for number of times * Update test_parscan.cpp * Update test_parfor.cpp: removing Contains * kp_sampler_skip.cpp: apply clang format * test_parfor.cpp: apply clang format * test_parreduce.cpp: apply clang format * test_parscan.cpp: apply clang format * Update test_parfor.cpp: putting in times * test_parfor.cpp: apply clang format * Update test_parreduce.cpp: put in times * test_parscan.cpp: put in times test * test_parscan.cpp: apply clang format * test_parreduce.cpp: apply clang format * test_parscan.cpp: apply clang format * test_parscan.cpp: apply clang format * test_parreduce.cpp: apply clang format * test_parfor.cpp: apply clang format * test_parfor.cpp: apply clang format * test_parreduce.cpp: apply clang format * test_parscan.cpp: apply clang format * kp_sampler_skip.cpp: std::cout to std::cerr Co-authored-by: Daniel Arndt <[email protected]> * test_parscan.cpp: fix declaration for variable result Co-authored-by: Damien L-G <[email protected]> * test_parfor.cpp: revisions of tests PR review * test_parreduce.cpp: fix with new tests * test_parscan.cpp: fix sampler scan * test_parreduce.cpp: fix with correct samples and comments * CMakeLists.txt: fix sampler skip rate * test_parfor.cpp: add string header * test_parreduce.cpp: add string header * test_parscan.cpp: add string header * Update test_parfor.cpp: fix output * test_parreduce.cpp: fix test * test_parscan.cpp: fix occurrences variable * test_parfor.cpp: apply clang format * test_parreduce.cpp: apply clang format * test_parscan.cpp: apply clang format * test_parreduce.cpp: apply clang format * test_parfor.cpp: fix sampler number from 11 to 12 * test_parreduce.cpp: sample number from 11 to 12 * test_parscan.cpp: change sample from 11 to 12 * kp_sampler_skip.cpp: revert cerr to cout * CMakeLists.txt: make global fences 0 * CMakeLists.txt: remove setting of global fence environment variable * Put in tests for sampler (kokkos#248) * CMakeLists.txt: tests for prob sampling Without fence and with fence * parreduce.hpp: file for parallel reduce * Update parreduce.hpp: putting once pragma for header * parfor.hpp: header file for parfor * parfor.hpp: put in code for Kokkos parallel for test * Create parscan.hpp: parscan code file * parscan.hpp: put in code for scan * test_parreduce.cpp: deleting parreduce header * test_parscan.cpp: using header for parscan * test_parfor.cpp: parfor header * test_parfor_prob.cpp: header * test_parreduce_prob.cpp: putting in parreduce hpp * test_parscan_prob.cpp: fix includes * test_parreduce_prob.cpp: HasSubStr to HasSubstr * new MatchersProb based on random seed two from CI build test OpenMP * matchersProb.hpp: update * test_par*_prob.cpp: apply clang format * test_parfor.cpp: apply clang format * matchersProb.hpp: fix to matchers - apply clang format * matchersProb.hpp: fix to matchers semicolon apply clang format * matchersProb.hpp: fix to matchers semicolon apply clang format --------- Co-authored-by: Christian Trott <[email protected]> Co-authored-by: Damien L-G <[email protected]> Co-authored-by: Daniel Arndt <[email protected]> Co-authored-by: Damien L-G <[email protected]>
- Loading branch information