How to verify that the onednn optimizations are enabled in runtime?
https://github.com/tensorflow/tensorflow/blob/v2.9.0/tensorflow/core/util/util.cc#L135C8-L135C18
https://github.com/tensorflow/tensorflow/blob/v2.9.0/tensorflow/core/util/util.cc#L169
According to the implementation  logics in tensorflow/core/util/util.cc,  seems it enter the first branch after IsMKLEnabled() called. 
```python
from tensorflow.python.util import _pywrap_util_port 
if (_pywrap_util_port.IsMklEnabled()) {
  print("Mkl is enabled") # True
}
``` @lizhangzhan Ensure you have installed the latest version of TensorFlow and OneDNN.
Make sure you are using the correct backend when launching your TensorFlow program. For TPUs, this should be "tpu".
Please check this latest master branch https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/util/util.cc
Thank you! I have verified the log issue.  In build phase, "--config=mkl" option influences the log printing.  @lizhangzhan Could you install the CUDA libraries If you haven't already, download and install the CUDA libraries for your specific operating system and GPU model. Please ensure the NVIDIA driver is installed and running. You can use the nvidia-smi command to check the status of the driver.
Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62575">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62575">No</a>

### Issue type

Build/Install

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

tf2.9.0

### Custom code

No

### OS platform and distribution

linux ubuntu20.04

### Mobile device

_No response_

### Python version

3.8.10

### Bazel version

5.0.0

### GCC/compiler version

9.4.0

### CUDA/cuDNN version

11.6.2-cudnn8

### GPU model and memory

_No response_

### Current behavior?

Expect to see a message beginning with "oneDNN custom operations are on" in my app log in startup phase

### Standalone code to reproduce the issue

```shell
1. Build tensorflow_cc library with a conanfile
https://gist.github.com/lizhangzhan/8fdc974fc9f8958478196e607de57cb3
2. Set TF_ENABLE_ONEDNN_OPTS=1 to start my application to load a graph proto file and build a session to execute in a CPU machine.
3. Unable to see a message beginning with "oneDNN custom operations are on" in my app log in startup phase.
```


### Relevant log output

```shell
2023-12-06 04:05:32.663256: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /workspace/lib/tensorflow_2.9.0/:/usr/local/nvidia/lib:/usr/local/nvidia/lib64
2023-12-06 04:05:32.663273: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
2023-12-06 04:05:32.663291: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (training-worker-0): /proc/driver/nvidia/version does not exist
2023-12-06 04:05:32.663387: I tensorflow/core/common_runtime/process_util.cc:146] Creating new thread pool with default inter op setting: 16. Tune using inter_op_parallelism_threads for best performance.
2023-12-06 04:05:32.704571: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:354] MLIR V1 optimization pass is not enabled
```
