Skip to content

Commit

Permalink
Fix flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Bartlett committed May 22, 2024
1 parent e257dda commit 943f5b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ The `faust2stratus` command has a number of Stratus-specific options that you ca
Apart from these options, you can add other Faust compiler options to the command line. This may be interesting if you are experimenting
with different CPP code generation strategies that may better suit your algorithm (e.g. improved vectorization).

Finally, you can affect the CPP compile itself by adding CPP compiler options to the `CXXOPTIONS` environment variable before
Finally, you can affect the CPP compile itself by adding CPP compiler options to the `CXXFLAGS` environment variable before
running the command. For example, some users have reported that the following extra CPP optimization options make for faster-running
algorithms. You would run _this_ command before the build command in order to pick these options up:

```
export CXXOPTIONS="-fprefetch-loop-arrays -funroll-loops -funsafe-loop-optimizations -fno-finite-math-only"
export CXXFLAGS="-fprefetch-loop-arrays -funroll-loops -funsafe-loop-optimizations -fno-finite-math-only"
```

### The `stratus-build-effect` command
Expand Down
2 changes: 1 addition & 1 deletion srcs/faust-stratus/bin/stratus-build-effect
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ scp -F "$SSH_CFG" "${DSP}" "$TARGET_USER@$TARGET_ADDRESS:/$TARGET_PATH"
# Build the effect:
ssh -F "$SSH_CFG" "$TARGET_USER@$TARGET_ADDRESS:/$TARGET_USER" -T <<ENDSSH
cd /$TARGET_USER
export CXXOPTIONS=${CXXOPTIONS:-}
export CXXFLAGS="${CXXFLAGS:-}"
faust2stratus "$DSP_FILENAME" "$@" || { echo "Build of $DSP_FILENAME failed"; exit 1; }
echo Build of $DSP_FILENAME succeeded
ENDSSH
Expand Down

0 comments on commit 943f5b5

Please sign in to comment.