-
Notifications
You must be signed in to change notification settings - Fork 35
dFEM: explicit dynamics gpu example #1465
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
Changes from all commits
a1fd3c4
ec9f22e
4acb25b
37fde7e
7a91d3e
c0fbe8a
dffe8a9
fa5cfc2
7303822
7a91bfe
babf48e
a24841c
ca17a2c
1155eaa
3a2ecf9
11bbe9b
e8f58a2
a906b0d
f4d72f7
e9b3731
39b6759
02ed2f5
c956443
03bc7c3
2cac1bc
d7d564b
1dbc62b
d459ddf
b59ff75
72f7b8c
02d085e
744de81
4805643
6f79c54
65eb831
af85395
4066720
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,14 +43,24 @@ toss4-llvm_19_1_3-src: | |
| variables: | ||
| COMPILER: "[email protected]" | ||
| HOST_CONFIG: "dane-toss_4_x86_64_ib-${COMPILER}.cmake" | ||
| EXTRA_CMAKE_OPTIONS: "-DENABLE_BENCHMARKS=ON -DENABLE_DOCS=OFF -DCMAKE_BUILD_TYPE=Debug" | ||
| EXTRA_CMAKE_OPTIONS: "-DENABLE_BENCHMARKS=ON -DENABLE_DOCS=OFF -DCMAKE_BUILD_TYPE=Debug -DSMITH_USE_DFEM=ON" | ||
| # Only run integration tests on one spec (Disabled until integration tests are reenabled) | ||
| # DO_INTEGRATION_TESTS: "yes" | ||
| # ALLOC_NODES: "2" | ||
| ALLOC_NODES: "1" | ||
| ALLOC_TIME: "30" | ||
| extends: .src_build_on_toss4 | ||
|
|
||
| toss4-llvm_19_1_3-src-codevelop: | ||
| variables: | ||
| COMPILER: "[email protected]" | ||
| HOST_CONFIG: "dane-toss_4_x86_64_ib-${COMPILER}.cmake" | ||
| EXTRA_CMAKE_OPTIONS: "-DENABLE_BENCHMARKS=ON -DENABLE_DOCS=OFF -DCMAKE_BUILD_TYPE=Debug -DSMITH_ENABLE_CODEVELOP=ON -DSMITH_USE_DFEM=ON" | ||
| EXTRA_BUILD_OPTIONS: "--skip-install" | ||
| ALLOC_NODES: "1" | ||
| ALLOC_TIME: "30" | ||
| extends: .src_build_on_toss4 | ||
|
|
||
| toss4-gcc_13_3_1-src: | ||
| variables: | ||
| COMPILER: "[email protected]" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,23 +33,24 @@ | |
| # Build jobs | ||
|
|
||
| toss4_cray-rocmcc_6_2_1-src: | ||
| variables: | ||
| COMPILER: "[email protected]" | ||
| HOST_CONFIG: "tioga-toss_4_x86_64_ib_cray-${COMPILER}_hip.cmake" | ||
| EXTRA_CMAKE_OPTIONS: "-DENABLE_BENCHMARKS=ON -DENABLE_DOCS=OFF -DCMAKE_BUILD_TYPE=Debug" | ||
| ALLOC_NODES: "1" | ||
| ALLOC_TIME: "30" | ||
| extends: .src_build_on_toss4_cray | ||
| variables: | ||
| COMPILER: "[email protected]" | ||
| HOST_CONFIG: "tioga-toss_4_x86_64_ib_cray-${COMPILER}_hip.cmake" | ||
| EXTRA_CMAKE_OPTIONS: "-DENABLE_BENCHMARKS=ON -DENABLE_DOCS=OFF -DCMAKE_BUILD_TYPE=Debug" | ||
| ALLOC_NODES: "1" | ||
| ALLOC_TIME: "30" | ||
| extends: .src_build_on_toss4_cray | ||
|
|
||
| toss4_cray-rocmcc_6_2_1-src-codevelop: | ||
| variables: | ||
| COMPILER: "[email protected]" | ||
| HOST_CONFIG: "tioga-toss_4_x86_64_ib_cray-${COMPILER}_hip.cmake" | ||
| EXTRA_CMAKE_OPTIONS: "-DENABLE_BENCHMARKS=ON -DENABLE_DOCS=OFF -DCMAKE_BUILD_TYPE=Debug -DSMITH_ENABLE_CODEVELOP=ON" | ||
| EXTRA_BUILD_OPTIONS: "--skip-install" | ||
| ALLOC_NODES: "1" | ||
| ALLOC_TIME: "30" | ||
| extends: .src_build_on_toss4_cray | ||
| variables: | ||
| COMPILER: "[email protected]" | ||
| HOST_CONFIG: "tioga-toss_4_x86_64_ib_cray-${COMPILER}_hip.cmake" | ||
| # TODO: Add -DSMITH_USE_DFEM=ON when TPLs are updated | ||
| EXTRA_CMAKE_OPTIONS: "-DENABLE_BENCHMARKS=ON -DENABLE_DOCS=OFF -DCMAKE_BUILD_TYPE=Debug -DSMITH_ENABLE_CODEVELOP=ON" | ||
| EXTRA_BUILD_OPTIONS: "--skip-install" | ||
| ALLOC_NODES: "1" | ||
| ALLOC_TIME: "30" | ||
| extends: .src_build_on_toss4_cray | ||
|
|
||
| # NOTE: SPEC should matches specs.json, but devtools and profiling variants removed | ||
| toss4_cray-rocmcc_6_2_1-tpl: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Copyright (c) Lawrence Livermore National Security, LLC and | ||
| # other Smith Project Developers. See the top-level LICENSE file for | ||
| # details. | ||
| # | ||
| # SPDX-License-Identifier: (BSD-3-Clause) | ||
|
|
||
| if(SMITH_USE_DFEM) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it seems like i still don't fully understand the difference between dfem and enzyme, so maybe this question doesn't make any sense, but could we use SMITH_USE_ENZYME here? also last question, could this option be removed once #1477 merges?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this bugged me too. I like
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A few more thoughts: Re: Also, IMO, using the
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. its fine to leave it as is then, and we can remove it later. may be worth creating an issue to track it |
||
| set(EXPLICIT_DYNAMICS_EXAMPLES_SOURCES | ||
| dfem_gpu.cpp | ||
| dfem_force_gpu.cpp | ||
| ) | ||
|
|
||
| foreach(filename ${EXPLICIT_DYNAMICS_EXAMPLES_SOURCES}) | ||
| get_filename_component(example_name ${filename} NAME_WE) | ||
|
|
||
| blt_add_executable(NAME explicit_${example_name} | ||
| SOURCES ${filename} | ||
| OUTPUT_DIR ${EXAMPLE_OUTPUT_DIRECTORY} | ||
| DEPENDS_ON smith_physics smith_mesh_utils) | ||
|
|
||
| smith_add_example_test(NAME explicit_${example_name} | ||
| COMMAND explicit_${example_name} | ||
| NUM_MPI_TASKS 4) | ||
|
|
||
| endforeach() | ||
|
|
||
| install( | ||
| FILES | ||
| ${EXPLICIT_DYNAMICS_EXAMPLES_SOURCES} | ||
| DESTINATION | ||
| examples/smith/explicit | ||
| ) | ||
|
|
||
| endif() | ||
Uh oh!
There was an error while loading. Please reload this page.