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/optix.cu.dir/build.make:82: CMakeFiles/optix.cu.dir/src/pbrt/gpu/optix.ptx] Error 1
  • make[1]: *** [CMakeFiles/Makefile2:914: CMakeFiles/optix.cu.dir/all] Error 2

why is this happen?