CUDA 11.5 samples throw multiple ... error: attribute "__malloc__" does not take arguments

Which glibc and gcc version did you use ?
Could you please report a ticket to us including this Forum link , referring to Getting Help with CUDA NVCC Compiler