(see more potential details here):
  

      github.com
  

  
    pytorch/pytorch/blob/4262c8913c2bddb8d91565888b4871790301faba/caffe2/CMakeLists.txt#L177 1



      
      
          endif()
          
          
# Advanced: if we have allow list specified, we will do intersections for all
          # main lib srcs.
          if(CAFFE2_ALLOWLISTED_FILES)
            caffe2_do_allowlist(Caffe2_CPU_SRCS CAFFE2_ALLOWLISTED_FILES)
            caffe2_do_allowlist(Caffe2_GPU_SRCS CAFFE2_ALLOWLISTED_FILES)
            caffe2_do_allowlist(Caffe2_HIP_SRCS CAFFE2_ALLOWLISTED_FILES)
          endif()
          
          
if(BUILD_SPLIT_CUDA)
            # Splitting the source files that'll be in torch_cuda between torch_cuda_cu and torch_cuda_cpp
            foreach(tmp ${Caffe2_GPU_SRCS})
              if("${tmp}" MATCHES "(.*aten.*\\.cu|.*(b|B)las.*|.*((s|S)olver|Register.*CUDA|Legacy|THC|TensorShapeCUDA|BatchLinearAlgebra|ReduceOps|Equal|Activation|ScanKernels|Sort|TensorTopK).*\\.cpp)" AND NOT "${tmp}" MATCHES ".*(THC((CachingHost)?Allocator|General)).*")
                # Currently, torch_cuda_cu will have all the .cu files in aten, as well as some others that depend on those files
                list(APPEND Caffe2_GPU_SRCS_CU ${tmp})
              else()
                list(APPEND Caffe2_GPU_SRCS_CPP ${tmp})
              endif()
            endforeach()
          
      

    
  


  

  
    
    
  

  


It might be that you’re not hitting any of the functions defined there…