Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase cuda-11.0 with kokkos-tools develop #261

Closed
wants to merge 67 commits into from
Closed

Rebase cuda-11.0 with kokkos-tools develop #261

wants to merge 67 commits into from

Conversation

vlkale
Copy link
Contributor

@vlkale vlkale commented Jul 11, 2024

This PR rebases cuda-11.0 branch (for a new CI) with develop

vlkale and others added 30 commits September 13, 2023 14:41
Putting in tool_invoked_fence code.
Fixing  tool induced fences to always fence on device with DevID 0. 

Fencing with DevID will be a done in subsequent patch (where Pair object will be used in the hash table to capture the begin sample's information. 

Note that the pair/tuple object can capture other state information to store between the beginning of sampling event and ending of it.
for infokIDSample efficiency in space
kp_sampler_skip.cpp: erase for efficiency of unordered map
Passing devID to invoke_ktools_febce() instead of 0 is in a separate PR. Checking fence is done only on devID hasn't been tested in this PR and isn't directly related to this PR.
* :Use eventset for roctxconnector

* Improvements thanks to review.
type: renaming `Kokkos_Tools_OptimizationGoal`
papi(bug): use `kp_add_library` to ensure it is installed
Don't disable clang-format in kp_json_writer.cpp
Use different GitHub action for indentation check
cleaning(simple-kernel-timer): promote `find_index` to `kp_shared.hpp`
* Add header/legend line to kp_reader

describing what each column means

* formatting

* Add a space to header, matching region/kernel lines
vlkale and others added 27 commits April 1, 2024 15:01
Sampler's CMakeLists.txt: add_library to kp_add_library
kp_sampler_skip.cpp: last parameter should be passed by value rather than pointer in kokkosp_p_t_p_i
Use kokkos tools kp_add_library for sampler
Remove tool programming interface pointer in kp_sampler_skip.cpp and kp_core.hpp
kp_kernel_logger.cpp: typo in end scan call back function
* README.md: fix build/run instructions 

Fix build and run instructions, put information at the top.

* README.md: fix install dir, revert unrelated changes

* Update README.md

Co-authored-by: Daniel Arndt <[email protected]>

* Update README.md: remove output file mention

Co-authored-by: Daniel Arndt <[email protected]>

* Update README.md

Co-authored-by: Daniel Arndt <[email protected]>

---------

Co-authored-by: Daniel Arndt <[email protected]>
Co-authored-by: Christian Trott <[email protected]>
…n corner case) (#253)

* kp_sampler_skip.cpp: put begin for callee check before fence 

This improves performance in the case there is no callee for the kokkosp_begin_parallel_for.

This is actually done correctly in the kokkosp_begin_parallel_scan and begin_parallel_reduce.

* kp_sampler_skip.cpp: apply clang-format
This PR introduces probabilistic sampling into kokkos_sampler, enabling the avoidance of bias in the sampled operations.
Two new options are introduced: KOKKOS_TOOLS_SAMPLER_PROB and KOKKOS_TOOLS_RANDOM_SEED which set the rate and a random seed respectively. 
The PR also introduces tests.
Don't link against kokkostools in tests unconditionally
kp_space_time_stack.cpp: do null pointer check of ptr at the beginning of alloc and dealloc functions
Check for de/allocations pointing to null
Fix finding Variorum via environment variable
…erface

Update Kokkos_Profiling_[C_]Interface.*
@vlkale vlkale closed this Jul 11, 2024
@vlkale vlkale reopened this Jul 11, 2024
@vlkale vlkale closed this Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants