-
Notifications
You must be signed in to change notification settings - Fork 17
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
Value-View Interface #289
Open
mdavis36
wants to merge
62
commits into
develop
Choose a base branch
from
feature/value-view-interface
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Value-View Interface #289
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
0907d56
Bringing over Value/View Interface headers and tests from research br…
mdavis36 8451ecf
Deleting ManagedSmartPtr and MVSmartRef classes and tests. They will …
mdavis36 d12c687
Adding testTRTField python test used during constexpr PYB11 developm…
mdavis36 01598a9
Deleting SphArrayInline/Inst. We are not using the old iterator class…
mdavis36 ee4a68c
Changing header includes SphArray -> ManagedVector.hh
mdavis36 c800c08
Re-organizing test locations, many tests are basic integration/exampl…
mdavis36 5990faa
Move QInt example class into test file.
mdavis36 5c04efe
Re-naming value-view tests to identify the design pattern used.
mdavis36 a8ddc5f
Adding a basic value-view interface example using metaclass macros.
mdavis36 29ee8fa
Merge branch 'develop' into feature/value-view-interface
mdavis36 df6c88f
Adding SCIP macros.
mdavis36 708cc2a
Moving Value View Interface under vvi namespace; Naming convention an…
mdavis36 2b5d3e7
SCIP -> VVI; Organizing VVI pattern into header file and impl file, t…
mdavis36 1e33c49
namespace changes to match documentation; VVI_VIEW_DEFAULT explicitly…
mdavis36 55f5174
Macros for wimplifying deepCopy and compare methods in Impl classes; …
mdavis36 383fed8
Empty DEEPCOPY & COMPARE member case; adding DECL_DEFAULT example in …
mdavis36 c09dacb
Using shorthand class defs in examples; Removing unnecessary macros f…
mdavis36 f3f5d36
Implmenting VVI for QuadraticInterpolator; Resolving Pedantic for war…
mdavis36 df81f95
Dealing w/ multi line comment warnings.
mdavis36 43cd543
SPHERAL_ENABLE_VVI for cuda build.
mdavis36 4a43482
Deleting unused tests/ directory.
mdavis36 dd82347
rm Kernel dir.
mdavis36 d850f67
QI tests for VVI on/off
mdavis36 9f48781
Adding --test option to hcb.py to run make test during CI.
mdavis36 ad518f0
Removing comment from MV impl.
mdavis36 74201bb
Turn off blt target printing.
mdavis36 3747afa
Cleaning up field tests.
mdavis36 9f29207
Hopefully fixing segfault blt_mpi_smoke test on ruby; Silencing warni…
mdavis36 78cbad2
Adding documentation for using the Value-View Interface.
mdavis36 6b5c8bd
Fixing title levels.
mdavis36 db42935
Merge branch 'develop' into feature/value-view-interface
mdavis36 bc65da2
put config header in the correct directory when spheral is a submodule.
mdavis36 b57181b
Do not clear INTERFACE_LINK_LIBRARIES
mdavis36 d4cada3
Updating Relaese notes for VVI PR.
mdavis36 3566f3d
Removing unnecessary comment and configuration of config.in
mdavis36 d1dc378
Formatting vvi docs.
mdavis36 988adcc
Merge branch 'develop' into feature/value-view-interface
mdavis36 0bbe7d6
Fixing CMake tests merge issue.
mdavis36 06b0492
Merge branch 'develop' into feature/value-view-interface
mdavis36 64afaa3
Merge branch 'develop' into feature/value-view-interface
mdavis36 c9c6e61
Fixed typo
jmikeowen c4eb45b
Merge branch 'develop' into feature/value-view-interface
jmikeowen 59d37d5
Moving ENABLE_DEV_BUILD CI test to clang on toss4
jmikeowen 0139307
Change gcc version on ansel to 10.2.1
ldowen 3ec887d
Bring blueos gcc version back to 8.3.1
ldowen ccf3375
Merge branch 'develop' into feature/value-view-interface
mdavis36 295c161
Merge branch 'develop' into feature/value-view-interface
mdavis36 47fe343
Fixing bad merge in QInt.
mdavis36 fcb1a3b
Clang + Gtest + pedantic warning fix.
mdavis36 66b8309
Having to revert some of the lambda changes in TableKernel.
mdavis36 52383b9
Pointing chai at latest changes.
mdavis36 9358eb0
Merge branch 'develop' into feature/value-view-interface
mdavis36 5990fce
Need to disable tests when ENABLE_DEV_BUILD=On, .so libs cannot resol…
mdavis36 630c4c8
Chai w/ static plugin fix.
mdavis36 057ee8f
Merge branch 'develop' into feature/value-view-interface
mdavis36 911e068
Turn off GPU copy for field c++ tests.
mdavis36 1aca95c
Merge branch 'feature/value-view-interface' of github.com:LLNL/sphera…
mdavis36 fb4758e
merge develop
mdavis36 bb41c53
Squashed commit of the following:
mdavis36 2a31dca
Merge branch 'develop' into feature/value-view-interface
mdavis36 9e57838
Merge branch 'develop' into feature/value-view-interface
mdavis36 100b018
Managed Vector Unit tests running on AMD GPUs
mdavis36 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
macro(spheral_add_executable) | ||
set(options ) | ||
set(singleValueArgs NAME TEST REPRODUCER BENCHMARK) | ||
set(multiValueArgs SOURCES DEPENDS_ON) | ||
|
||
cmake_parse_arguments(arg | ||
"${options}" "${singleValueArgs}" "${multiValueArgs}" ${ARGN}) | ||
|
||
if (ENABLE_OPENMP) | ||
list (APPEND arg_DEPENDS_ON openmp) | ||
endif () | ||
|
||
if (ENABLE_CUDA) | ||
list (APPEND arg_DEPENDS_ON cuda) | ||
endif () | ||
|
||
if (ENABLE_HIP) | ||
list (APPEND arg_DEPENDS_ON blt::hip) | ||
list (APPEND arg_DEPENDS_ON blt::hip_runtime) | ||
endif () | ||
|
||
if (${arg_TEST}) | ||
set (_output_dir ${CMAKE_BINARY_DIR}/test) | ||
elseif (${arg_REPRODUCER}) | ||
set (_output_dir ${CMAKE_BINARY_DIR}/reproducers) | ||
elseif (${arg_BENCHMARK}) | ||
set (_output_dir ${CMAKE_BINARY_DIR}/benchmark) | ||
else () | ||
set (_output_dir ${CMAKE_BINARY_DIR}/bin) | ||
endif() | ||
|
||
blt_add_executable( | ||
NAME ${arg_NAME} | ||
SOURCES ${arg_SOURCES} | ||
DEPENDS_ON ${arg_DEPENDS_ON} | ||
OUTPUT_DIR ${_output_dir} | ||
) | ||
|
||
target_include_directories(${arg_NAME} SYSTEM PRIVATE ${SPHERAL_EXTERN_INCLUDES}) | ||
target_include_directories(${arg_NAME} SYSTEM PRIVATE ${SPHERAL_ROOT_DIR}/src) | ||
target_include_directories(${arg_NAME} SYSTEM PRIVATE ${PROJECT_BINARY_DIR}/src) | ||
|
||
endmacro(spheral_add_executable) | ||
|
||
macro(spheral_add_test) | ||
set(options DEBUG_LINKER) | ||
set(singleValueArgs NAME) | ||
set(multiValueArgs SOURCES DEPENDS_ON) | ||
|
||
cmake_parse_arguments(arg | ||
"${options}" "${singleValueArgs}" "${multiValueArgs}" ${ARGN}) | ||
|
||
set(original_test_name ${arg_NAME}) | ||
set(original_src ${arg_SOURCES}) | ||
set(original_deps ${arg_DEPENDS_ON}) | ||
|
||
if (ENABLE_DEV_BUILD) | ||
message("Skipping ${original_test_name} : NOT compatible with ENABLE_DEV_BUILD.") | ||
else() | ||
get_property(SPHERAL_BLT_DEPENDS GLOBAL PROPERTY SPHERAL_BLT_DEPENDS) | ||
|
||
blt_add_library( | ||
NAME ${original_test_name}_lib | ||
SOURCES ${TEST_LIB_SOURCE} | ||
SOURCES ${SPHERAL_ROOT_DIR}/src/spheralCXX.cc | ||
DEPENDS_ON ${SPHERAL_BLT_DEPENDS} ${original_deps} | ||
SHARED False | ||
) | ||
|
||
target_link_options(${original_test_name}_lib PRIVATE "-Wl,--unresolved-symbols=ignore-in-object-files") | ||
|
||
spheral_add_executable( | ||
NAME ${original_test_name}.exe | ||
SOURCES ${original_src} | ||
DEPENDS_ON gtest ${CMAKE_THREAD_LIBS_INIT} ${original_test_name}_lib | ||
TEST On) | ||
|
||
blt_add_test( | ||
NAME ${original_test_name} | ||
COMMAND ${TEST_DRIVER} ${original_test_name}.exe) | ||
|
||
target_include_directories(${original_test_name}.exe SYSTEM PRIVATE ${SPHERAL_ROOT_DIR}/tests/cpp/include) | ||
|
||
if (${arg_DEBUG_LINKER}) | ||
target_link_options(${original_test_name}.exe PUBLIC "-Wl,--warn-unresolved-symbols") | ||
else() | ||
target_link_options(${original_test_name}.exe PUBLIC "-Wl,--unresolved-symbols=ignore-all") | ||
endif() | ||
endif() | ||
|
||
endmacro(spheral_add_test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the Value-View interface be enabled for CPU builds as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be used for CPU builds but it is required for any GPU builds where we will be executing on the device. This just ensures it's enabled if you are building spheral w/ cuda.