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

Exercises - Modify Makefile #53

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@ spack-build/
spack-build-env.txt
spack-build-out.txt
cmake_install.cmake
*.host
*.cuda
*.o
*.a
KokkosCore_*
*hwloc*
lstopo*
HWLOC*
test_omp
96 changes: 66 additions & 30 deletions Exercises/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,43 +5,70 @@ begin:
make -j 8 -C 02/Begin
make -j 8 -C 03/Begin
make -j 8 -C 04/Begin
make -j 8 -C 05/Begin
make -j 8 -C 06/Begin
make -j 8 -C 07/Begin
make -j 8 -C 08/Begin
make -j 8 -C 09/Begin
make -j 8 -C 10/Begin
make -j 8 -C dualview/Begin
make -j 8 -C random_number/Begin
make -j 8 -C scatter_view/Begin
make -j 8 -C scatter_view/Usage
make -j 8 -C subview/Begin
make -j 8 -C tasking/Begin
make -j 8 -C team_policy/Begin
make -j 8 -C team_scratch_memory/Begin
make -j 8 -C team_vector_loop/Begin
make -j 8 -C unique_token/Begin
make -j 8 -C unordered_map/Begin
make -j 8 -C virtualfunction/Begin

solution:
make -j 8 -C 01/Solution
make -j 8 -C 02/Solution
make -j 8 -C 03/Solution
make -j 8 -C 04/Solution
make -j 8 -C 05/Solution
make -j 8 -C 06/Solution
make -j 8 -C 07/Solution
make -j 8 -C 08/Solution
make -j 8 -C 09/Solution
make -j 8 -C 10/Solution
make -j 8 -C dualview/Solution
make -j 8 -C random_number/Solution
make -j 8 -C scatter_view/Solution
make -j 8 -C subview/Solution
make -j 8 -C tasking/Solution
make -j 8 -C team_policy/Solution
make -j 8 -C team_scratch_memory/Solution
make -j 8 -C team_vector_loop/Solution
make -j 8 -C unique_token/Solution
make -j 8 -C unordered_map/Solution
make -j 8 -C virtualfunction/Solution

test: test-begin test-solution

test-begin: begin
make -j 8 -C 01/Begin test
make -j 8 -C 02/Begin test
make -j 8 -C 04/Begin test
make -j 8 -C 05/Begin test
make -j 8 -C 06/Begin test
make -j 8 -C 07/Begin test
make -j 8 -C dualview/Begin test
make -j 8 -C random_number/Begin test
make -j 8 -C scatter_view/Begin test
make -j 8 -C subview/Begin test
make -j 8 -C tasking/Begin test
make -j 8 -C team_policy/Begin test
make -j 8 -C team_scratch_memory/Begin test
make -j 8 -C team_vector_loop/Begin test
make -j 8 -C unique_token/Begin test
make -j 8 -C unordered_map/Begin test
make -j 8 -C virtualfunction/Begin test

test-solution: solution
make -j 8 -C 01/Solution test
make -j 8 -C 02/Solution test
make -j 8 -C 03/Solution test
make -j 8 -C 04/Solution test
make -j 8 -C 05/Solution test
make -j 8 -C 06/Solution test
make -j 8 -C 07/Solution test
make -j 8 -C dualview/Solution test
make -j 8 -C random_number/Solution test
make -j 8 -C scatter_view/Solution test
make -j 8 -C subview/Solution test
make -j 8 -C tasking/Solution test
make -j 8 -C team_policy/Solution test
make -j 8 -C team_scratch_memory/Solution test
make -j 8 -C team_vector_loop/Solution test
make -j 8 -C unique_token/Solution test
make -j 8 -C unordered_map/Solution test
make -j 8 -C virtualfunction/Solution test

clean:
make -j 8 -C 01/Begin clean
Expand All @@ -52,17 +79,26 @@ clean:
make -j 8 -C 03/Solution clean
make -j 8 -C 04/Begin clean
make -j 8 -C 04/Solution clean
make -j 8 -C 05/Begin clean
make -j 8 -C 05/Solution clean
make -j 8 -C 06/Begin clean
make -j 8 -C 06/Solution clean
make -j 8 -C 07/Begin clean
make -j 8 -C 07/Solution clean
make -j 8 -C 08/Begin clean
make -j 8 -C 08/Solution clean
make -j 8 -C 09/Begin clean
make -j 8 -C 09/Solution clean
make -j 8 -C 10/Begin clean
make -j 8 -C 10/Solution clean
make -j 8 -C dualview/Begin clean
make -j 8 -C dualview/Solution clean
make -j 8 -C random_number/Begin clean
make -j 8 -C random_number/Solution clean
make -j 8 -C scatter_view/Begin clean
make -j 8 -C scatter_view/Solution clean
make -j 8 -C scatter_view/Usage clean
make -j 8 -C subview/Begin clean
make -j 8 -C subview/Solution clean
make -j 8 -C tasking/Begin clean
make -j 8 -C tasking/Solution clean
make -j 8 -C team_policy/Begin clean
make -j 8 -C team_policy/Solution clean
make -j 8 -C team_scratch_memory/Begin clean
make -j 8 -C team_scratch_memory/Solution clean
make -j 8 -C team_vector_loop/Begin clean
make -j 8 -C team_vector_loop/Solution clean
make -j 8 -C unique_token/Begin clean
make -j 8 -C unique_token/Solution clean
make -j 8 -C unordered_map/Begin clean
make -j 8 -C unordered_map/Solution clean
make -j 8 -C virtualfunction/Begin clean
make -j 8 -C virtualfunction/Solution clean