Cuda issue with rtx3070 laptop

hi, I am using cuda11 and optix7 with my rtx3070 laptop on ubuntu20.04, but when I build my project it occurs an error:

  • nvcc fatal : Option ‘–ptx (-ptx)’ is not allowed when compiling for multiple GPU architectures
  • make[2]: *** [CMakeFiles/ CMakeFiles/] Error 1
  • make[1]: *** [CMakeFiles/Makefile2:914: CMakeFiles/] Error 2

why is this happen?