cexa-project / kokkos-cheat-sheet Goto Github PK
View Code? Open in Web Editor NEWCheat sheets for the HPC C++ library Kokkos
License: Other
Cheat sheets for the HPC C++ library Kokkos
License: Other
For now (i.e. when finalizing #19), the cheat sheet has a style which is not fully descriptive of the API, unlike the OpenMP cheat sheet or the SYCL cheat sheet.
Signatures of functions are incomplete and do not explicit input parameter types. By instance, the signature for a View
is:
Kokkos::View<DataType, LayoutType, MemorySpace, MemoryTraits> view("label", numberOfElements);
while in the API doc, the signature is displayed as (without descriptive text):
template <class DataType [, class LayoutType] [, class MemorySpace] [, class MemoryTraits]>
class View;
View()
View(const View<DT, Prop...> &rhs)
View(View &&rhs)
View(const std::string &name, const IntType&... indices)
View(const std::string &name, const array_layout &layout)
View(const AllocProperties &prop, const IntType&... indices)
View(const AllocProperties &prop, const array_layout &layout)
View(pointer_type ptr, const IntType&... indices)
View(pointer_type ptr, const array_layout &layout)
View(const ScratchSpace &space, const IntType&... indices)
View(const ScratchSpace &space, const array_layout &layout)
View(const View<DT, Prop...> &rhs, Args... args)
Obviously, not all signatures should be in the cheat sheet, but we could include the most common ones. The types of the input parameters are explicited, which would be an improvement.
Currently, Markdown files are converted to
Maybe we should use a different intermediate language, such as EPUB? This format is used for digital books and is based on HTML and CSS. Generating EPUB files with Pandoc is already feasible. The code examples may be highlighted by a JS library. Some nice CSS3 features such as column-count
would give the same feel and taste as the current approach. Bonus point, we would have the web and the print version simultaneously!
This is not a burning topic, but is something to consider if we continue to improve the cheat sheet.
For now, the project has one source file. Since we will to have more, it would be interesting to manage the build with CMake. Question is, is it worth it?
We can either use our own version number (0.1.0, 1.0.0, etc.), or stick to Kokkos version number (4.2.0). The former gives us full control over it, the later gives a strong hint that the documentation is tied to a specific version of Kokkos. Problem is, what if we have our own patches to apply? Maybe we can keep the tweak version number for our own needs:
4.2.0.1
^ ^ ^ ^
| | | + Cheat sheet version
| | +-- Kokkos patch version
| +---- Kokkos minor version
+------ Kokkos major version
For instance, Cheat Sheet for Kokkos.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.