From e87d9f477762071e08c69ca1ff1ab0bfee8c9b55 Mon Sep 17 00:00:00 2001 From: Marco Barbone Date: Tue, 11 Feb 2025 17:52:08 -0500 Subject: [PATCH] removed presets --- CMakePresets.json | 176 ---------------------------------------------- docs/install.rst | 15 ---- 2 files changed, 191 deletions(-) delete mode 100644 CMakePresets.json diff --git a/CMakePresets.json b/CMakePresets.json deleted file mode 100644 index 32229d1c5..000000000 --- a/CMakePresets.json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "version": 2, - "cmakeMinimumRequired": { - "major": 3, - "minor": 19, - "patch": 0 - }, - "configurePresets": [ - { - "name": "default", - "binaryDir": "build/default", - "displayName": "Default", - "description": "Default release configuration (ninja)", - "generator": "Ninja", - "cacheVariables": { - "CMAKE_BUILD_TYPE": "RelWithDebInfo" - } - }, - { - "name": "ninja-multi", - "binaryDir": "build/ninja", - "displayName": "Ninja Multi-config", - "description": "Multi-configuration build with ninja", - "generator": "Ninja Multi-Config" - }, - { - "name": "dev", - "binaryDir": "build/dev", - "displayName": "Development", - "description": "Development configuration (full tests and examples)", - "generator": "Ninja Multi-Config", - "cacheVariables": { - "FINUFFT_BUILD_TESTS": "ON", - "FINUFFT_BUILD_EXAMPLES": "ON", - "FINUFFT_BUILD_DEVEL": "ON" - } - }, - { - "name": "benchmark", - "binaryDir": "build/benchmark", - "displayName": "Benchmark", - "description": "Benchmark release configuration (ninja)", - "generator": "Ninja", - "cacheVariables": { - "CMAKE_BUILD_TYPE": "RelWithDebInfo", - "FINUFFT_BUILD_TESTS": "ON", - "FINUFFT_BUILD_EXAMPLES": "ON", - "FINUFFT_FFTW_SUFFIX": "", - "FINUFFT_USE_OPENMP": "OFF" - } - }, - { - "name": "manylinux", - "binaryDir": "build/manylinux", - "displayName": "manylinux", - "description": "Configuration for maximum binary compatibility", - "inherits": "default", - "cacheVariables": { - "FINUFFT_ARCH_FLAGS": "-march=x86-64 -mtune=generic -msse4" - } - }, - { - "name": "singlethreaded", - "binaryDir": "build/singlethreaded", - "displayName": "singlethreaded", - "description": - "Configuration for single-threaded build. Disables OpenMP for finufft and FFTW", - "inherits": "default", - "cacheVariables": { - "FINUFFT_FFTW_SUFFIX": "", - "FINUFFT_USE_OPENMP": "OFF" - } - }, - { - "name": "icx", - "binaryDir": "build/icx", - "displayName": "Intel Compiler (llvm)", - "description": "Build with Intel Compiler", - "generator": "Ninja Multi-Config", - "cacheVariables": { - "CMAKE_C_COMPILER": "icx", - "CMAKE_CXX_COMPILER": "icpx", - "CMAKE_Fortran_COMPILER": "ifx", - "FINUFFT_ARCH_FLAGS": "-xHost", - "CMAKE_CXX_FLAGS": "-fp-model=strict" - } - }, - { - "name": "icc", - "binaryDir": "build/icc", - "displayName": "Intel Compiler", - "description": "Build with Intel Compiler", - "generator": "Ninja Multi-Config", - "cacheVariables": { - "CMAKE_C_COMPILER": "icc", - "CMAKE_CXX_COMPILER": "icpc", - "CMAKE_Fortran_COMPILER": "ifort", - "FINUFFT_ARCH_FLAGS": "-xHost", - "CMAKE_CXX_FLAGS": "-fp-model=strict" - } - }, - { - "name": "matlab", - "binaryDir": "build/matlab", - "displayName": "matlab", - "description": "Build with the matlab interface", - "generator": "Ninja Multi-Config", - "cacheVariables": { - "FINUFFT_FFTW_SUFFIX": "Threads", - "FINUFFT_BUILD_MATLAB": "ON", - "FINUFFT_ENABLE_SANITIZERS": "OFF" - } - }, - { - "name": "python", - "binaryDir": "build/python", - "displayName": "python", - "description": "Build with the python interface", - "generator": "Ninja Multi-Config", - "cacheVariables": { - "FINUFFT_BUILD_PYTHON": "ON", - "FINUFFT_ENABLE_SANITIZERS": "OFF", - "CMAKE_INSTALL_DATAROOTDIR": "." - } - } - ], - "buildPresets": [ - { - "name": "default", - "configurePreset": "default" - }, - { - "name": "dev", - "configurePreset": "dev", - "configuration": "RelWithDebInfo" - }, - { - "name": "ninja-multi", - "configurePreset": "ninja-multi", - "configuration": "RelWithDebInfo" - }, - { - "name": "manylinux", - "configurePreset": "manylinux" - }, - { - "name": "singlethreaded", - "configurePreset": "singlethreaded" - }, - { - "name": "icc", - "configurePreset": "icc", - "configuration": "RelWithDebInfo" - }, - { - "name": "icx", - "configurePreset": "icx", - "configuration": "RelWithDebInfo" - }, - { - "name": "matlab", - "configurePreset": "matlab", - "configuration": "Release" - } - ], - "testPresets": [ - { - "name": "dev", - "configurePreset": "dev", - "configuration": "Debug", - "environment": { - "OMP_NUM_THREADS": "1" - } - } - ] -} diff --git a/docs/install.rst b/docs/install.rst index b0b2f518e..f55716de6 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -133,19 +133,6 @@ Here are our CMake build options, showing name, explanatory text, and default va :start-after: @cmake_opts_start :end-before: @cmake_opts_end -For convenience we also provide a number of `cmake presets `_ -for various platforms, options and compilers, in ``CMakePresets.json``. -For example, to configure, build and test the development preset (which builds tests and examples), from ``build`` do: - -.. code-block:: bash - - cmake -S . -B build --preset dev # dev is the name of the preset - cmake --build build - ctest --test-dir build - -From other CMake projects, to use ``finufft`` as a library after building as above, simply add this repository as a subdirectory using -``add_subdirectory``, and use ``target_link_library(your_executable finufft)``. - Notes on compiler flags for various systems ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -161,8 +148,6 @@ These apply to CMake (as above), or GNU make (as below). Intel compilers (unlike GPU compilers) currently engage ``fastmath`` behavior with ``-O2`` or ``-O3``. This may interfere with our use of ``std::isfinite`` in our source and test codes. For this reason in the Intel presets ``icx`` and ``icc`` have set ``-fp-model=strict``. You may get more speed if you remove this flag, or try ``-fno-finite-math-only``. - - Classic GNU make based route ----------------------------