Refine the packaging infrastructure.#207
Conversation
Use pyproject.toml and scikit-build-core to drive the CMake build. Minor CMake modernization. Add some CMake infrastructure to try to handle the three target build types (cuda, hip, and cpu-only) but the project infrastructure may not be set up for non-cuda builds at this point.
- Fix default accelerator framework. - Only define `__USE_NOTEX` for AMD
|
Commit 6de2200 is a pretty substantial change to restore automatic hipification that Background
A complete migration off of CMake-driven hipifyWe're trying to call hipify-clang, but, at least in ROCM 7.2, we're having a hard time managing its output files correctly. In the mean time, we can use the
For best results, use the most recent ROCM available and the oldest supported CUDA available. With ROCM 7.2 and CUDA 12.9, the following seems to work python -m build . -Ccmake.define.LEAP_GPU=AMD -Ccmake.define.CMAKE_CXX_COMPILER=`which amdclang++` --no-isolation |
6de2200 to
0577a9c
Compare
Continues the CMake reorganization and migrates from setup.py to pyproject.toml to drive the build and packaging.
Includes some source code patches for more consistent behavior and some shim headers for better compatibility across CUDA, HIP, and CPU runtimes.