my3bikaht:

Please check if CUDA 11.4 supports gcc 11, probably not


That’s a great suggestion, as I haven’t noticed the GCC version.
@khushi-411 At least GCC 11.1 has a known bug in CUDA 11.4 (which is already fixed in CUDA 11.5), so you would either need to downgrade GCC or update CUDA.