Conversation
…rate timing example, add a stupid MD sim example, add a CUDA version of matmal for performance check
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly expands the mini-app ecosystem by integrating two complex scientific workflows, Digital Twin and Inverse Design. These additions provide robust, configurable frameworks for advanced computational tasks, built upon an updated and more performant kernel API. The changes aim to enhance the platform's capability to model and execute sophisticated scientific applications efficiently, with a focus on modularity and performance analysis. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces new mini-applications and configuration files under examples/Tutorial/tasks/, examples/motif_3/, and examples/motif_4/, alongside new CUDA benchmark files. The wfMiniAPI library is refactored to include a new registry.py module for kernel management (annotation, listing, running, timing), and kernel.py is updated to integrate this registry, annotating existing kernels and adding new fftn, axpy_fast, and top_k functions. The review identified several critical issues, including a loop variable shadowing a function parameter in examples/motif_4/miniapp_async.py, undefined variables in wfMiniAPI/src/wfMiniAPI/sim.py, and an undefined sh_callout function in wfMiniAPI/setup.py. It also highlighted high-severity improvements related to unused function parameters across multiple mini-app scripts. Medium-severity feedback included unused imports, redundant logging calls, non-portable path concatenations, typos in help strings, an unused logger variable, hardcoded CUDA version in setup.py, a redundant GPU warmup loop in registry.py, misplacement of a timing script, and a lack of error checking in CUDA benchmark cleanup functions.
wfMiniAPI/requirements.txt
Outdated
| h5py | ||
| mpi4py | ||
| radical-pilot | ||
| ROSE @ git+https://github.com/radical-cybertools/ROSE.git |
There was a problem hiding this comment.
since you are linking this to the main branch of ROSE. Does the mini apps support the new ROSE API?
There was a problem hiding this comment.
Requirements have been changed, ROSE is not used in the framework or examples, instead Asyncflow, Rhapsody, and Dragon have been added
|
@Iznoanygod The code that you are trying to merge is using an old version of
LMK, if you need any help of clairfication |
|
@AymenFJA Code now uses current Asyncflow + RHAPSODY API, with Dragon Backend. The requirements now exclude ROSE as it is not needed, dragon, rhapsody, asyncflow added as requirements for the motif examples. |
This pull request adds the Digital Twin and Inverse Design motifs as workflows, built on Asyncflow with Dragon Execution backend.
Workflows are tunable with the config file.
This was based on the Tutorial_reprod branch, which has an updated workflow miniapp kernel API and tutorial notebook.