if(WITH_GPU) if(${CMAKE_CUDA_COMPILER_VERSION} LESS 12.0 AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 12.0) return() endif() endif() add_executable(print_pten_kernels print_pten_kernels.cc) target_link_libraries(print_pten_kernels phi phi_api_utils) if(WIN32) target_link_libraries(print_pten_kernels shlwapi.lib) endif() if(WITH_ROCM) target_link_libraries(print_pten_kernels ${ROCM_HIPRTC_LIB}) endif()