Fix test for BF16 detection
# What does this PR do?

When `no_cuda=True`, we shouldn't try to detect the support for BF16 GPU.
_The documentation is not available anymore as the PR was closed or merged._