From ca0110401f30b2ecc14919060394dcdddde48e91 Mon Sep 17 00:00:00 2001 From: Edoardo Zoni Date: Fri, 15 Nov 2024 12:40:51 -0800 Subject: [PATCH 1/3] Docs: warn about default variables set by conda --- Docs/source/install/dependencies.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Docs/source/install/dependencies.rst b/Docs/source/install/dependencies.rst index 71a607eae6a..0ca57530f93 100644 --- a/Docs/source/install/dependencies.rst +++ b/Docs/source/install/dependencies.rst @@ -121,6 +121,8 @@ For Nvidia CUDA GPU support, you will need to have `a recent CUDA driver install More info for `CUDA-enabled ML packages `__. +.. warning:: + When you install CMake in a conda environment, conda sets several environment variables, e.g., ``CXXFLAGS``, to default values that are specific to the conda environment. Such values are concatenated to the values set by WarpX during buildsystem generation. In order to avoid unintended side effects (e.g., compiling with ``-O2`` instead of ``-O3``), please consider clearing ``CXXFLAGS`` (and/or other relevant variables) before generating the buildsystem and compiling. Spack (Linux/macOS) ------------------- From 7f0d076daaf221544b5f6b4a13fe9191879b1b8f Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Tue, 3 Dec 2024 09:36:48 -0800 Subject: [PATCH 2/3] Apply suggestions from code review --- Docs/source/install/dependencies.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docs/source/install/dependencies.rst b/Docs/source/install/dependencies.rst index 0ca57530f93..cd8d0095382 100644 --- a/Docs/source/install/dependencies.rst +++ b/Docs/source/install/dependencies.rst @@ -122,7 +122,7 @@ For Nvidia CUDA GPU support, you will need to have `a recent CUDA driver install More info for `CUDA-enabled ML packages `__. .. warning:: - When you install CMake in a conda environment, conda sets several environment variables, e.g., ``CXXFLAGS``, to default values that are specific to the conda environment. Such values are concatenated to the values set by WarpX during buildsystem generation. In order to avoid unintended side effects (e.g., compiling with ``-O2`` instead of ``-O3``), please consider clearing ``CXXFLAGS`` (and/or other relevant variables) before generating the buildsystem and compiling. + When you install CMake in a conda environment, conda sets several environment variables, e.g., ``CXXFLAGS``, to default values that are specific to the conda environment. Such values are concatenated to the values set by WarpX during buildsystem generation. In order to avoid unintended side effects (e.g., compiling with ``-O2`` instead of ``-O3``), please consider clearing ``CXXFLAGS`` and/or other relevant variables (e.g., via ``export CXXFLAGS=""``) before generating the buildsystem and compiling. Spack (Linux/macOS) ------------------- From 3b1bc89cae400e4f816d5fb523295dadf8a2e4c9 Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Wed, 8 Jan 2025 09:50:46 -0800 Subject: [PATCH 3/3] Update Docs/source/install/dependencies.rst Co-authored-by: Axel Huebl --- Docs/source/install/dependencies.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Docs/source/install/dependencies.rst b/Docs/source/install/dependencies.rst index cd8d0095382..7bd5792072b 100644 --- a/Docs/source/install/dependencies.rst +++ b/Docs/source/install/dependencies.rst @@ -122,7 +122,8 @@ For Nvidia CUDA GPU support, you will need to have `a recent CUDA driver install More info for `CUDA-enabled ML packages `__. .. warning:: - When you install CMake in a conda environment, conda sets several environment variables, e.g., ``CXXFLAGS``, to default values that are specific to the conda environment. Such values are concatenated to the values set by WarpX during buildsystem generation. In order to avoid unintended side effects (e.g., compiling with ``-O2`` instead of ``-O3``), please consider clearing ``CXXFLAGS`` and/or other relevant variables (e.g., via ``export CXXFLAGS=""``) before generating the buildsystem and compiling. + + When you install CMake in a conda environment, conda sets several environment variables, e.g., ``CXXFLAGS``, to default values that are specific to the conda environment. Such values are concatenated to the values set by WarpX during buildsystem generation. In order to avoid unintended side effects (e.g., compiling with ``-O2`` instead of ``-O3``), please consider clearing ``CXXFLAGS`` and/or other relevant variables (e.g., via ``unset CXXFLAGS``) before generating the buildsystem and compiling. Spack (Linux/macOS) -------------------