How to run detectron2 using rtx 3090 and with cuda 11.x on ubuntu?

The RuntimeError points only to the failure of the build, but no error message is shown.
The log should thus have a proper error message explaining why it’s failing in the previous logs.
Yes, disabling ninja might be slower, but could yield the error message closer to the actual failure.