Skip to content

Instantly share code, notes, and snippets.

@steindev
Last active September 7, 2023 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steindev/871598519c499ceeabd400bf25f98bac to your computer and use it in GitHub Desktop.
Save steindev/871598519c499ceeabd400bf25f98bac to your computer and use it in GitHub Desktop.
CLion CMake Settings
  1. Install picongpu conda environment and activate it
  2. Install clion sudo snap install clion --classic
  3. Start clion, choose 'Open' and set Toolchain:
    • CMake: .../anaconda3/envs/picongpu/bin/cmake
    • Build Tool: .../anaconda3/envs/picongpu/bin/make
    • C Compiler: .../anaconda3/envs/picongpu/bin/x86_64-conda-linux-gnu-cc
    • C++ Compiler: .../anaconda3/envs/picongpu/bin/x86_64-conda-linux-gnu-c++
  4. CMake Setting:
    • CMake options: -DCMAKE_CXX_FLAGS=-g -DCMAKE_INSTALL_PREFIX=. -DPIC_EXTENSION_PATH=/home/.../src/picongpu/share/picongpu/examples/KelvinHelmholtz -Dalpaka_ACC_CPU_B_OMP2_T_SEQ_ENABLE=ON -DCUPLA_STREAM_ASYNC_ENABLE=OFF -DPMACC_CPU_ARCH="native"
    • Build directory: /home/.../picInput/clion_build
    • Build options: -- -j 2
  5. In case of problems, first 'Reset Cache and Reload Project' from CMake dialog next to console at the bottom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment