Lines Matching +full:sparse +full:- +full:checkout
1 # ---[ Generate and install header and cpp files
4 # ---[ Vulkan code gen
9 # Debug messages - if you want to get a list of source files and examine
10 # target information, enable the following by -DPRINT_CMAKE_DEBUG_INFO=ON.
17 # OMP - OpenMP for intra-op, native thread pool for inter-op parallelism
18 # NATIVE - using native thread pool for intra- and inter-op parallelism
41 # ---[ Declare source file lists
43 # ---[ ATen build
86 # ---[ Caffe2 build
218 # formerly-libtorch
339 list(APPEND GEN_PER_OPERATOR_FLAG "--per_operator_headers")
350 --native-functions-path "aten/src/ATen/native/native_functions.yaml"
351 --tags-path "aten/src/ATen/native/tags.yaml"
352 $<$<BOOL:${INTERN_DISABLE_AUTOGRAD}>:--disable-autograd>
353 $<$<BOOL:${SELECTED_OP_LIST}>:--selected-op-list-path="${SELECTED_OP_LIST}">
354 --force_schema_registration
355 --gen_lazy_ts_backend
376 ….wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/#custom…
378 generate-torch-sources
394 …SRC_DIR}/csrc/jit/serialization/pickle.cpp PROPERTIES COMPILE_FLAGS "-DC10_MOBILE -DFEATURE_TORCH_…
420 …/torch/csrc/autograd/record_function_ops.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
447 …RC_DIR}/csrc/jit/backends/coreml/objc/PTMCoreMLBackend.mm PROPERTIES COMPILE_FLAGS "-fno-objc-arc")
455 …ties(${TORCH_SRC_DIR}/csrc/jit/tensorexpr/llvm_jit.cpp PROPERTIES COMPILE_FLAGS -Wno-noexcept-type)
457 # Disable certain warnings for GCC-9.X
460 …csrc/jit/tensorexpr/llvm_jit.cpp PROPERTIES COMPILE_FLAGS "-Wno-redundant-move -Wno-noexcept-type")
461 …H_SRC_DIR}/csrc/jit/tensorexpr/llvm_codegen.cpp PROPERTIES COMPILE_FLAGS "-Wno-init-list-lifetime")
466 …${TORCH_ROOT}/aten/src/ATen/native/BlasKernel.cpp PROPERTIES COMPILE_FLAGS "-march=armv8.2-a+fp16")
545 # Delay load nvcuda.dll so we can import torch compiled with cuda on a CPU-only machine
546 set(DELAY_LOAD_FLAGS "-DELAYLOAD:nvcuda.dll;delayimp.lib")
565 PROPERTIES COMPILE_FLAGS "-DPYTORCH_C10_DRIVER_API_SUPPORTED=1"
573 …H_SRC_DIR}/csrc/jit/passes/frozen_conv_add_relu_fusion.cpp PROPERTIES COMPILE_FLAGS "-DUSE_CUDA=1")
574 …rties(${TORCH_SRC_DIR}/csrc/jit/codegen/cuda/interface.cpp PROPERTIES COMPILE_FLAGS "-DUSE_CUDA=1")
675 ${TORCH_SRC_DIR}/csrc/api/src/serialize/input-archive.cpp
676 ${TORCH_SRC_DIR}/csrc/api/src/serialize/output-archive.cpp
687 # NOTE [ Linking AVX and non-AVX files ]
696 # 1. A non-AVX2 and an AVX2 file both call a function defined with the `inline`
708 # 1. All files with no AVX-n support
726 # END formerly-libtorch sources
745 # ---[ Torch python bindings build
765 # Ignore Wdeprecated-XXX errors from third-party libraries
767 …RCE_DIR}/torch/csrc/distributed/c10d/socket.cpp PROPERTIES COMPILE_OPTIONS "-Wno-error=deprecated")
771 target_compile_options_if_supported(torch_cpu "-Wmissing-prototypes")
772 target_compile_options_if_supported(torch_cpu "-Werror=missing-prototypes")
775 …operties(${generated_file} PROPERTIES COMPILE_OPTIONS "-Wno-missing-prototypes;-Wno-error=missing-…
780 if(res GREATER -1)
781 …_properties(${source_file} PROPERTIES COMPILE_OPTIONS "-Wno-missing-prototypes;-Wno-error=missing-…
785 if(res GREATER -1)
786 …_properties(${source_file} PROPERTIES COMPILE_OPTIONS "-Wno-missing-prototypes;-Wno-error=missing-…
791 option(TORCH_USE_IWYU "Use include-what-you-use to clean up header inclusion" OFF)
793 find_program(iwyu NAMES include-what-you-use)
796 "include-what-you-use"
797 "-Xiwyu"
798 "--transitive_includes_only"
799 "-Xiwyu"
800 "--no_fwd_decls"
801 "-Xiwyu"
802 "--prefix_header_includes=keep"
803 "-Xiwyu"
804 "--mapping_file=${CMAKE_CURRENT_LIST_DIR}/../tools/iwyu/all.imp"
844 target_compile_options(torch_cpu PRIVATE "-g")
855 …set_target_properties(torch_cpu PROPERTIES LINK_FLAGS "-Wl,-unexported_symbols_list,${LINKER_SCRIP…
859 target_link_libraries(torch_cpu PRIVATE "-Wl,--version-script=${LINKER_SCRIPT}")
997 …/aten/src/ATen/native/cuda/LinearAlgebraStubs.cpp PROPERTIES COMPILE_FLAGS "-DBUILD_LAZY_CUDA_LINA…
1006 …# Apply suggestion from comment https://github.com/pytorch/pytorch/issues/113053#issuecomment-2115…
1008 …aten/src/ATen/cuda/CUDASparseDescriptors.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
1009 …IR}/../aten/src/ATen/cuda/CUDASparseBlas.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
1010 …ENT_SOURCE_DIR}/../aten/src/ATen/native/sparse/cuda/SparseCUDABlas.cpp PROPERTIES COMPILE_FLAGS -W…
1011 …ENT_SOURCE_DIR}/../aten/src/ATen/native/sparse/cuda/SparseBlasImpl.cpp PROPERTIES COMPILE_FLAGS -W…
1021 set(TORCH_XPU_OPS_DIR ${TORCH_ROOT}/third_party/torch-xpu-ops)
1022 set(TORCH_XPU_OPS_REPO_URL https://github.com/intel/torch-xpu-ops.git)
1027 COMMAND git clone --quiet ${TORCH_XPU_OPS_REPO_URL} ${TORCH_XPU_OPS_DIR}
1034 COMMAND git fetch --quiet
1041 COMMAND git checkout --quiet ${TORCH_XPU_OPS_COMMIT}
1045 message(FATAL_ERROR "Fail to checkout ${TORCH_XPU_OPS_REPO_URL} to ${TORCH_XPU_OPS_COMMIT}")
1054 # could be followed by torch-xpu-ops build.
1055 # 1. Sources in torch-xpu-ops depend on generated ATen headers.
1056 # 2. Using add_custom_command in torch-xpu-ops to define sycl device sources
1061 add_subdirectory(${TORCH_ROOT}/third_party/torch-xpu-ops
1070 "-WHOLEARCHIVE:\"$<TARGET_FILE:torch_xpu_ops>\"")
1074 "-Wl,--whole-archive,\"$<TARGET_FILE:torch_xpu_ops>\" -Wl,--no-whole-archive")
1088 # formerly-libtorch flags
1092 # Build model tracer for tracing-based selective build
1098 string(APPEND CMAKE_CXX_FLAGS " -DENABLE_RECORD_KERNEL_FUNCTION_DTYPE")
1111 -m tools.code_analyzer.gen_oplist
1112 --model_file_list_path "${SELECTED_OP_LIST}"
1113 --output_dir "${CMAKE_BINARY_DIR}/aten/src/ATen"
1126 -m tools.lite_interpreter.gen_selected_mobile_ops_header
1127 --yaml_file_path "${SELECTED_OP_LIST}"
1128 --output_file_path "${CMAKE_BINARY_DIR}/aten/src/ATen"
1150 # -INCLUDE is used to ensure torch_cuda is linked against in a project that relies on them.
1152 target_link_libraries(torch_cuda INTERFACE "-INCLUDE:?warp_size@cuda@at@@YAHXZ")
1173 …/../aten/src/ATen/native/QuantizedLinear.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
1174 …_SOURCE_DIR}/../aten/src/ATen/native/RNN.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
1175 …Ten/native/quantized/cpu/qlinear_prepack.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
1176 …src/ATen/native/quantized/qlinear_unpack.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
1185 ${TORCH_ROOT}/third_party/miniz-2.1.0)
1196 ${TORCH_ROOT}/third_party/cpp-httplib)
1282 # ---[ Torch python bindings build
1287 # END formerly-libtorch flags
1370 PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
1407 # we link torch_cpu with these --undefined symbols, we can ensure they
1417 STRING(APPEND _undefined_link_flags " -Wl,--undefined=mkl_lapack_${_symb}")
1447 "Experimental option to use a single thread pool for inter- and intra-op parallelism")
1449 target_compile_definitions(torch_cpu PUBLIC "-DAT_EXPERIMENTAL_SINGLE_THREAD_POOL=1")
1455 target_compile_options(torch_cpu PRIVATE "-DONNX_BUILD_MAIN_LIB")
1509 # ---[ CUDA library.
1538 # ---[ XPU library.
1559 # Check whether the compiler supports '--no-as-needed' and '--as-needed'
1560 check_linker_flag(CXX "-Wl,--no-as-needed" HAVE_NO_AS_NEEDED)
1561 check_linker_flag(CXX "-Wl,--as-needed" HAVE_AS_NEEDED)
1565 "-Wl,--no-as-needed,\"$<TARGET_FILE:torch_cpu>\" -Wl,--as-needed")
1572 # ---[ Metal(OSX) modification
1593 # That usually leads to missing symbol errors at run-time, so to avoid a situation like
1611 # not find them, because they're usually in non-standard locations)
1622 # ---[ Caffe2 HIP sources.
1629 list(APPEND HIP_CLANG_FLAGS "-D${_item}")
1673 target_link_options(${benchmark_name} PRIVATE "LINKER:--allow-multiple-definition")
1689 # ---[ Test binaries.
1724 target_compile_options(${test_name}_${CPU_CAPABILITY} PRIVATE -Wno-ignored-qualifiers)
1853 set_source_files_properties(${tmp_path} PROPERTIES COMPILE_FLAGS "-Xcompiler /Zc:lambda")