Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes the known bug
#1
AlexeyAB/darknet#8669
AlexeyAB/darknet#8766
I could reproduce it with current master on first try
![Screenshot 2024-01-08 124611](https://private-user-images.githubusercontent.com/77390911/294919658-66a63abc-c203-4889-8284-9f3597e67537.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTQ2OTEsIm5iZiI6MTczOTYxNDM5MSwicGF0aCI6Ii83NzM5MDkxMS8yOTQ5MTk2NTgtNjZhNjNhYmMtYzIwMy00ODg5LTgyODQtOWYzNTk3ZTY3NTM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDEwMTMxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE4NzllMzZmMmIxZjdmMGM3YzMxMjljZjAzMTNjMjU4NDgyOWUwYWU1YWM4ZGUyNWMyYWVmZWFjMDE5MGI0NmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0O1wDDE4URUbkEOS948xW4e2YWrTUmvqKAaHfm5XuJw)
This fix is not perfect since we loose some performance by not using CUDNN_CONVOLUTION_FWD_ALGO_IMPLICIT_PRECOMP_GEMM. However in our tests the difference during training was very low. (And if the last ms matters in production intereference on gpu ppl would use fp16 optimized freamworks like opencv anyway)
The mid/long term fix will be to improve the cudnn <-> darknet interface but the current status is filled with so many warnings that it seems wasted to search for this one line when there are probably many bugs in this part of the code.
Tested with current cuda and cudnn version.