Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #1

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

update #1

wants to merge 7 commits into from

Conversation

MatthijsBurgh
Copy link
Member

No description provided.

@MatthijsBurgh
Copy link
Member Author

.
├── libtorch-build
├── libtorch-src
│   ├── bin
│   ├── build-hash
│   ├── build-version
│   ├── include
│   │   ├── ATen
│   │   │   ├── ATen.h
│   │   │   ├── AccumulateType.h
│   │   │   ├── ArrayRef.h
│   │   │   ├── Backend.h
│   │   │   ├── Backtrace.h
│   │   │   ├── CPUApplyUtils.h
│   │   │   ├── CPUFixedAllocator.h
│   │   │   ├── CPUFunctions.h
│   │   │   ├── CPUFunctions_inl.h
│   │   │   ├── CPUGeneratorImpl.h
│   │   │   ├── CUDAFunctions.h
│   │   │   ├── CUDAFunctions_inl.h
│   │   │   ├── CachedTensorUtils.h
│   │   │   ├── CollapseDims.h
│   │   │   ├── CompositeExplicitAutogradFunctions.h
│   │   │   ├── CompositeExplicitAutogradFunctions_inl.h
│   │   │   ├── CompositeExplicitAutogradNonFunctionalFunctions.h
│   │   │   ├── CompositeExplicitAutogradNonFunctionalFunctions_inl.h
│   │   │   ├── CompositeImplicitAutogradFunctions.h
│   │   │   ├── CompositeImplicitAutogradFunctions_inl.h
│   │   │   ├── CompositeImplicitAutogradNestedTensorFunctions.h
│   │   │   ├── CompositeImplicitAutogradNestedTensorFunctions_inl.h
│   │   │   ├── Config.h
│   │   │   ├── Context.h
│   │   │   ├── DLConvertor.h
│   │   │   ├── Device.h
│   │   │   ├── DeviceGuard.h
│   │   │   ├── DimVector.h
│   │   │   ├── Dimname.h
│   │   │   ├── Dispatch.h
│   │   │   ├── DynamicLibrary.h
│   │   │   ├── EmptyTensor.h
│   │   │   ├── ExpandBase.h
│   │   │   ├── ExpandUtils.h
│   │   │   ├── Formatting.h
│   │   │   ├── FuncTorchTLS.h
│   │   │   ├── FunctionalStorageImpl.h
│   │   │   ├── FunctionalTensorWrapper.h
│   │   │   ├── Functions.h
│   │   │   ├── Generator.h
│   │   │   ├── InferSize.h
│   │   │   ├── InitialTensorOptions.h
│   │   │   ├── Layout.h
│   │   │   ├── LegacyBatchedFallback.h
│   │   │   ├── LegacyBatchedTensorImpl.h
│   │   │   ├── LegacyVmapMode.h
│   │   │   ├── LegacyVmapTransforms.h
│   │   │   ├── LinalgBackend.h
│   │   │   ├── MapAllocator.h
│   │   │   ├── MatrixRef.h
│   │   │   ├── MemoryOverlap.h
│   │   │   ├── MetaFunctions.h
│   │   │   ├── MetaFunctions_inl.h
│   │   │   ├── MethodOperators.h
│   │   │   ├── NamedTensor.h
│   │   │   ├── NamedTensorUtils.h
│   │   │   ├── NativeFunctions.h
│   │   │   ├── NativeMetaFunctions.h
│   │   │   ├── NestedTensorImpl.h
│   │   │   ├── NumericUtils.h
│   │   │   ├── OpMathType.h
│   │   │   ├── OpaqueTensorImpl.h
│   │   │   ├── Operators.h
│   │   │   ├── PTThreadPool.h
│   │   │   ├── PadNd.h
│   │   │   ├── Parallel-inl.h
│   │   │   ├── Parallel.h
│   │   │   ├── ParallelFuture.h
│   │   │   ├── ParallelNative.h
│   │   │   ├── ParallelNativeTBB.h
│   │   │   ├── ParallelOpenMP.h
│   │   │   ├── PythonTorchFunctionTLS.h
│   │   │   ├── RedispatchFunctions.h
│   │   │   ├── RegistrationDeclarations.h
│   │   │   ├── SavedTensorHooks.h
│   │   │   ├── Scalar.h
│   │   │   ├── ScalarOps.h
│   │   │   ├── ScalarType.h
│   │   │   ├── SequenceNumber.h
│   │   │   ├── SmallVector.h
│   │   │   ├── SparseCsrTensorImpl.h
│   │   │   ├── SparseCsrTensorUtils.h
│   │   │   ├── SparseTensorImpl.h
│   │   │   ├── Storage.h
│   │   │   ├── StorageUtils.h
│   │   │   ├── Tensor.h
│   │   │   ├── TensorAccessor.h
│   │   │   ├── TensorGeometry.h
│   │   │   ├── TensorIndexing.h
│   │   │   ├── TensorIterator.h
│   │   │   ├── TensorIteratorInternal.h
│   │   │   ├── TensorMeta.h
│   │   │   ├── TensorNames.h
│   │   │   ├── TensorOperators.h
│   │   │   ├── TensorOptions.h
│   │   │   ├── TensorSubclassLikeUtils.h
│   │   │   ├── TensorUtils.h
│   │   │   ├── ThreadLocalPythonObjects.h
│   │   │   ├── ThreadLocalState.h
│   │   │   ├── TracerMode.h
│   │   │   ├── TypeDefault.h
│   │   │   ├── Utils.h
│   │   │   ├── Version.h
│   │   │   ├── VmapGeneratedPlumbing.h
│   │   │   ├── WrapDimUtils.h
│   │   │   ├── WrapDimUtilsMulti.h
│   │   │   ├── autocast_mode.h
│   │   │   ├── ceil_div.h
│   │   │   ├── code_template.h
│   │   │   ├── core
│   │   │   ├── cpp_custom_type_hack.h
│   │   │   ├── cpu
│   │   │   ├── cuda
│   │   │   ├── cudnn
│   │   │   ├── detail
│   │   │   ├── div_rtn.h
│   │   │   ├── dlpack.h
│   │   │   ├── functorch
│   │   │   ├── hip
│   │   │   ├── jit_macros.h
│   │   │   ├── jiterator_macros.h
│   │   │   ├── miopen
│   │   │   ├── mps
│   │   │   ├── native
│   │   │   ├── ops
│   │   │   ├── quantized
│   │   │   └── record_function.h
│   │   ├── THC
│   │   │   ├── THCAtomics.cuh
│   │   │   └── THCDeviceUtils.cuh
│   │   ├── c10
│   │   │   ├── core
│   │   │   ├── cuda
│   │   │   ├── macros
│   │   │   └── util
│   │   ├── caffe2
│   │   │   └── serialize
│   │   ├── clog.h
│   │   ├── cpuinfo.h
│   │   ├── dnnl.h
│   │   ├── dnnl_config.h
│   │   ├── dnnl_debug.h
│   │   ├── dnnl_ocl.h
│   │   ├── dnnl_sycl.h
│   │   ├── dnnl_sycl_types.h
│   │   ├── dnnl_threadpool.h
│   │   ├── dnnl_types.h
│   │   ├── dnnl_version.h
│   │   ├── fp16.h
│   │   ├── fxdiv.h
│   │   ├── libshm.h
│   │   ├── nnpack.h
│   │   ├── nvfuser_resources
│   │   │   ├── PhiloxCudaStateRaw.h
│   │   │   ├── UnpackRaw.h
│   │   │   ├── array.h
│   │   │   ├── bf16_support.h
│   │   │   ├── block_reduction.h
│   │   │   ├── block_sync_atomic.h
│   │   │   ├── block_sync_default.h
│   │   │   ├── broadcast.h
│   │   │   ├── fp16_support.h
│   │   │   ├── fused_reduction.h
│   │   │   ├── fused_welford_helper.h
│   │   │   ├── fused_welford_impl.h
│   │   │   ├── grid_broadcast.h
│   │   │   ├── grid_reduction.h
│   │   │   ├── grid_sync.h
│   │   │   ├── helpers.h
│   │   │   ├── index_utils.h
│   │   │   ├── memory.h
│   │   │   ├── random_numbers.h
│   │   │   ├── swizzle.h
│   │   │   ├── tensor.h
│   │   │   ├── tensorcore.h
│   │   │   ├── tuple.h
│   │   │   ├── type_traits.h
│   │   │   ├── warp.h
│   │   │   └── welford.h
│   │   ├── psimd.h
│   │   ├── pthreadpool.h
│   │   ├── pybind11
│   │   │   ├── attr.h
│   │   │   ├── buffer_info.h
│   │   │   ├── cast.h
│   │   │   ├── chrono.h
│   │   │   ├── common.h
│   │   │   ├── complex.h
│   │   │   ├── detail
│   │   │   ├── eigen.h
│   │   │   ├── embed.h
│   │   │   ├── eval.h
│   │   │   ├── functional.h
│   │   │   ├── gil.h
│   │   │   ├── iostream.h
│   │   │   ├── numpy.h
│   │   │   ├── operators.h
│   │   │   ├── options.h
│   │   │   ├── pybind11.h
│   │   │   ├── pytypes.h
│   │   │   ├── stl.h
│   │   │   ├── stl_bind.h
│   │   │   └── type_caster_pyobject_ptr.h
│   │   ├── qnnpack.h
│   │   ├── qnnpack_func.h
│   │   ├── sleef.h
│   │   ├── tensorpipe
│   │   │   ├── channel
│   │   │   ├── common
│   │   │   ├── config.h
│   │   │   ├── config_cuda.h
│   │   │   ├── core
│   │   │   ├── tensorpipe.h
│   │   │   ├── tensorpipe_cuda.h
│   │   │   └── transport
│   │   ├── torch
│   │   │   ├── csrc
│   │   │   ├── custom_class.h
│   │   │   ├── custom_class_detail.h
│   │   │   ├── extension.h
│   │   │   ├── library.h
│   │   │   └── script.h
│   │   └── xnnpack.h
│   ├── lib
│   │   ├── libXNNPACK.a
│   │   ├── libasmjit.a
│   │   ├── libbackend_with_compiler.so
│   │   ├── libbenchmark.a
│   │   ├── libbenchmark_main.a
│   │   ├── libc10.so
│   │   ├── libc10_cuda.so
│   │   ├── libc10d_cuda_test.so
│   │   ├── libcaffe2_nvrtc.so
│   │   ├── libcaffe2_protos.a
│   │   ├── libclog.a
│   │   ├── libcpuinfo.a
│   │   ├── libcpuinfo_internals.a
│   │   ├── libcublas-37d11411.so.12
│   │   ├── libcublasLt-f97bfc2c.so.12
│   │   ├── libcudart-9335f6a2.so.12
│   │   ├── libcudnn.so.8
│   │   ├── libcudnn_adv_infer.so.8
│   │   ├── libcudnn_adv_train.so.8
│   │   ├── libcudnn_cnn_infer.so.8
│   │   ├── libcudnn_cnn_train.so.8
│   │   ├── libcudnn_ops_infer.so.8
│   │   ├── libcudnn_ops_train.so.8
│   │   ├── libdnnl.a
│   │   ├── libfbgemm.a
│   │   ├── libfmt.a
│   │   ├── libfoxi_loader.a
│   │   ├── libgloo.a
│   │   ├── libgloo_cuda.a
│   │   ├── libgmock.a
│   │   ├── libgmock_main.a
│   │   ├── libgomp-52f2fd74.so.1
│   │   ├── libgtest.a
│   │   ├── libgtest_main.a
│   │   ├── libittnotify.a
│   │   ├── libjitbackend_test.so
│   │   ├── libkineto.a
│   │   ├── libnnapi_backend.so
│   │   ├── libnnpack.a
│   │   ├── libnnpack_reference_layers.a
│   │   ├── libnvToolsExt-847d78f2.so.1
│   │   ├── libnvfuser_codegen.so
│   │   ├── libnvrtc-b51b459d.so.12
│   │   ├── libnvrtc-builtins-6c5639ce.so.12.1
│   │   ├── libonnx.a
│   │   ├── libonnx_proto.a
│   │   ├── libprotobuf-lite.a
│   │   ├── libprotobuf.a
│   │   ├── libprotoc.a
│   │   ├── libpthreadpool.a
│   │   ├── libpytorch_qnnpack.a
│   │   ├── libqnnpack.a
│   │   ├── libshm.so
│   │   ├── libtensorpipe.a
│   │   ├── libtensorpipe_cuda.a
│   │   ├── libtensorpipe_uv.a
│   │   ├── libtorch.so
│   │   ├── libtorch_cpu.so
│   │   ├── libtorch_cuda.so
│   │   ├── libtorch_cuda_linalg.so
│   │   ├── libtorch_global_deps.so
│   │   ├── libtorch_python.so
│   │   ├── libtorchbind_test.so
│   │   └── libunbox_lib.a
│   └── share
│       └── cmake
│           ├── ATen
│           ├── Caffe2
│           ├── Tensorpipe
│           └── Torch
└── libtorch-subbuild
    ├── CMakeCache.txt
    ├── CMakeFiles
    │   ├── 3.27.7
    │   │   └── CMakeSystem.cmake
    │   ├── CMakeConfigureLog.yaml
    │   ├── CMakeDirectoryInformation.cmake
    │   ├── CMakeRuleHashes.txt
    │   ├── Makefile.cmake
    │   ├── Makefile2
    │   ├── TargetDirectories.txt
    │   ├── cmake.check_cache
    │   ├── libtorch-populate-complete
    │   ├── libtorch-populate.dir
    │   │   ├── DependInfo.cmake
    │   │   ├── Labels.json
    │   │   ├── Labels.txt
    │   │   ├── build.make
    │   │   ├── cmake_clean.cmake
    │   │   ├── compiler_depend.make
    │   │   ├── compiler_depend.ts
    │   │   └── progress.make
    │   ├── pkgRedirects
    │   └── progress.marks
    ├── CMakeLists.txt
    ├── Makefile
    ├── cmake_install.cmake
    └── libtorch-populate-prefix
        ├── src
        │   ├── libtorch-cxx11-abi-shared-with-deps-2.1.1%2Bcu121.zip
        │   └── libtorch-populate-stamp
        └── tmp
            ├── libtorch-populate-cfgcmd.txt
            └── libtorch-populate-mkdirs.cmake

51 directories, 284 files

@ar13pit
Copy link

ar13pit commented Dec 8, 2023

An example with onnxruntime library. This is for a pure CMake package with a package.xml with export build_type as cmake

cmake_minimum_required(VERSION 3.16)

find_package(agmah_cmake REQUIRED)

parse_manifest("${CMAKE_CURRENT_SOURCE_DIR}/package.xml")
project(${PROJECT_NAME} VERSION ${PROJECT_VERSION} DESCRIPTION ${PROJECT_DESCRIPTION})

include(GNUInstallDirs)
include(FetchContent)

FetchContent_Declare(
  onnxruntime
  URL https://github.com/microsoft/onnxruntime/releases/download/v1.12.1/onnxruntime-linux-x64-1.12.1.tgz
)

FetchContent_MakeAvailable(onnxruntime)

install(DIRECTORY ${onnxruntime_SOURCE_DIR}/include/
  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)

install(DIRECTORY ${onnxruntime_SOURCE_DIR}/lib/
  DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants