To incorporate personalized C++ compiler flags into a conda-build flow, follow these steps:
Add the personalized C++ compiler flags to the CXXFLAGS
environment variable. You can do this by setting it in your shell configuration file such as .bashrc
.
In your meta.yaml
file, include the following sections:
build:
script: |
#!/bin/bash
export CXXFLAGS="${CXXFLAGS} ${MY_CXXFLAGS}"
$PYTHON setup.py install
This script includes the personalized C++ flags by adding the MY_CXXFLAGS
variable to the CXXFLAGS
environment variable.
conda_build_config.yaml
file, include the following:variables:
MY_CXXFLAGS: "-march=native -O3 -funroll-loops"
This sets the MY_CXXFLAGS
variable to the personalized C++ compiler flags you want to use.
conda build
command to build your package with the personalized C++ compiler flags.With these steps, you can incorporate personalized C++ compiler flags into your conda-build flow.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-07-23 11:00:00 +0000
Seen: 14 times
Last updated: Apr 07 '23
How can a named pipe be used to establish communication between virtual machines?
How can a list be sorted alphabetically within a console application?
What are the Python alternatives to C++ STL vector/list containers?
What does the error message "xml.parsers.expat.ExpatError" signify when parsing XML?
How can I enhance the efficiency of a basic script for searching and replacing strings?
What are the flags specific to compilers used by Bazel?
What does an empty name signify in the inotify_event structure in the C++ language?