mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
[2/N] Remove outdated CMake code (#130006)
Follows #129851 Pull Request resolved: https://github.com/pytorch/pytorch/pull/130006 Approved by: https://github.com/drisspg
This commit is contained in:
parent
26be691e6b
commit
07b06f0f0a
1 changed files with 0 additions and 10 deletions
|
|
@ -574,15 +574,6 @@ if(USE_CUDA)
|
|||
set_source_files_properties(${TORCH_SRC_DIR}/csrc/jit/codegen/cuda/interface.cpp PROPERTIES COMPILE_FLAGS "-DUSE_CUDA=1")
|
||||
endif()
|
||||
|
||||
if(USE_FLASH_ATTENTION AND NOT MSVC)
|
||||
# Cutlass contains a sign-compare violation in its codebase to be fixed by https://github.com/NVIDIA/cutlass/pull/869
|
||||
set_source_files_properties(
|
||||
"${PROJECT_SOURCE_DIR}/aten/src/ATen/native/nested/cuda/NestedTensorMatmul.cu"
|
||||
"${PROJECT_SOURCE_DIR}/aten/src/ATen/native/nested/cuda/NestedTensorTransformerFunctions.cu"
|
||||
"${PROJECT_SOURCE_DIR}/aten/src/ATen/native/transformers/cuda/flash_attn/fmha_bwd_hdim128.cu"
|
||||
PROPERTIES COMPILE_FLAGS "-Wno-sign-compare")
|
||||
endif()
|
||||
|
||||
if(BUILD_ONEDNN_GRAPH)
|
||||
list(APPEND Caffe2_CPU_SRCS
|
||||
${TORCH_SRC_DIR}/csrc/jit/codegen/onednn/LlgaTensorImpl.cpp
|
||||
|
|
@ -935,7 +926,6 @@ elseif(USE_CUDA)
|
|||
endif()
|
||||
set(CUDA_LINK_LIBRARIES_KEYWORD)
|
||||
torch_compile_options(torch_cuda) # see cmake/public/utils.cmake
|
||||
target_compile_options_if_supported(torch_cuda "-Wno-deprecated-copy") # see cmake/public/utils.cmake
|
||||
target_compile_definitions(torch_cuda PRIVATE USE_CUDA)
|
||||
|
||||
if(USE_CUSPARSELT)
|
||||
|
|
|
|||
Loading…
Reference in a new issue