I'm trying to set a remote environment variable explicitly in an ssh command:
ssh worker-2 "export OPENBLAS_NUM_THREADS=1; echo $OPENBLAS_NUM_THREADS"
Strangely, this prints just a blank line, but when I run the same command locally, it correctly prints 1
.
Since I'm setting the variable explicitly, why isn't it working remotely?