From 6d4cd3e5f27792d9c902cb8d12403cad9e9351bc Mon Sep 17 00:00:00 2001 From: cyy Date: Tue, 26 Nov 2024 03:51:53 +0000 Subject: [PATCH] Remove linking of private cuda targets (#141463) Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/141463 Approved by: https://github.com/malfet --- caffe2/CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/caffe2/CMakeLists.txt b/caffe2/CMakeLists.txt index dbd765ab44b13..e2330bb8eb0ea 100644 --- a/caffe2/CMakeLists.txt +++ b/caffe2/CMakeLists.txt @@ -1834,9 +1834,6 @@ if(BUILD_TEST) endif() endif() endforeach() - if(TARGET context_gpu_test) - target_link_libraries(context_gpu_test caffe2::curand caffe2::cublas) - endif() endif() if(USE_XPU)