Open bertsky opened 1 year ago
@bertsky : Many thanks for opening this issue. The "Warning"-variant would be very nice.
In my opinion, this is needed,
e.g. in my environment I can only "believe" that ocrd-kraken-segment
uses the GPU.
e.g. in my environment I can only "believe" that
ocrd-kraken-segment
uses the GPU.
BTW I just amended https://github.com/OCR-D/ocrd_kraken/pull/38 to include such warnings for Kraken.
Having consistent WARNING
about this across processors would be a good first step indeed.
Due to the lack of a specification on that aspect, our processors have no or no uniform way to inform the user whether or not a GPU device is used (or even parameterise which one to prefer). Here's the current state of affairs in this regard:
no GPU device available
Tensorflow cannot detect CUDA installation. Running without GPU will be slow
using ... LSTM implementation to compile ...
using ... LSTM implementation to compile ...
TF_CPP_MIN_LOG_LEVEL=3
Using compute device ...
torch cannot detect CUDA installation
The good news is that when there is a GPU, we try to utilise it. But the user has no way to validate this works (other than perhaps
make test-cuda
in ocrd_all).Personally, I like the warnings best. Could we agree on standardising and enforcing these?