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)