When building TensorFlow from source, we're asked to set --config=opt
(which by default will enable the gcc flag -march=native
) but across the web I see a lot of people using -c opt
instead, but according to Bazel's documentation -c
is actually shorthand for --compilation_mode
and not --config
!
Confusingly, --compilation_mode
also takes 'opt' as a value, but I assume that's just coincidental? Could someone clarify the difference between -c opt
and --config=opt
when executing bazel build
during TensorFlow compilation?