Comments (3)
@bartgol , I noticed this when I was testing this feature. The user just needs to pass an empty string for those, like I did here:
CreateUnitTest(resource_spread_rank "" ""
TEST_EXE resource_spread_thread
Not super elegant, but at least it keeps us from needing multiple macros. One thing we could do is raise an error if the user provides a TEST_EXE but also tries to provide sources or test libs.
We could bite the bullet and go with multiple macros too.
from ekat.
Imho, passing empty args just to fit into the existing macro is not the right choice. You're hijacking the existing framework to do something different. For a developer that has never seen it, it might be confusing.
I think I will write the 3 macro solution, which is fully bwd compatible, and (imho) more self-explanatory for the new use case. Furthermore, since the last macro (the one that we currently use) would be impl-ed in terms of the previous two, I think the amount of actual code (adding up the macros bodies) would remain unchanged. It would simply be broken into 2 macros.
from ekat.
Fixed by #166
from ekat.
Related Issues (20)
- Change default internal storage of arrays in ParameterList, when parsing a YAML file
- Allow user to extend set of supported types for YAML parsing/writing.
- The tridiag tests are not really run, but report pass
- Make genRandArray accept 64 bit ints for the array length
- Allow specific log filenames to be supplied to `ekat::logging::Logger` HOT 2
- TPL Catch2 is incomplete HOT 8
- Potential problem in WSM with take/release
- EKAT valid_nested_list_format uses size_t for an integer, num_open, that might go negative HOT 1
- Remove assumption of CudaUVM in order to create Host team policies
- Current kokkos submodule reference is not a tree HOT 1
- Add SYCL/HIP testing to PR testing
- Need to update setting of C++ standard in ekat CMakeLists.txt
- Append to rather than set CXXFLAGS, etc. HOT 4
- Do not make EKAT enable FPEs during initialize_ekat_session HOT 4
- Expand view_reduction to handle array of accumulators.
- Potential problem with ExeSpaceUtils view_reduction and parallel_reduce HOT 5
- Potential fix for Apple silicon build HOT 11
- Add stacktrace information to assert macros HOT 3
- EKAT's use of `find_package` for Kokkos requires CMake 3.24 HOT 2
- Update cmake minimum version HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ekat.