Skip to content

Commit d2ace48

Browse files
authored
Add lockfile to libtorch example (#219)
* Add lockfile to libtorch example * fix lock * wip
1 parent c23ca7b commit d2ace48

3 files changed

Lines changed: 58 additions & 2 deletions

File tree

examples/libraries/libtorch/regression/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ we use [the official PyTorch examples repository](https://github.com/pytorch/exa
77
so make sure to clone it first and then navigate to the `cpp/regression` folder:
88

99
```bash
10-
$ git clone https://github.com/pytorch/examples/tree/main/cpp/regression
10+
$ git clone https://github.com/pytorch/examples
1111
$ cd cpp/regression
1212
```
1313

14-
Then, copy the `conanfile.txt` from this directory to the `cpp/regression` folder,
14+
Then, copy the `conanfile.txt` and the `conan.lock` from this directory to the `cpp/regression` folder,
1515
and finally run Conan and CMake as usual:
1616

1717
```bash

examples/libraries/libtorch/regression/ci_test_example.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
run("git clone --depth 1 https://github.com/pytorch/examples.git")
99
shutil.copy("conanfile.txt", "examples/cpp/regression/conanfile.txt")
10+
shutil.copy("conan.lock", "examples/cpp/regression/conan.lock")
1011

1112
with chdir("examples/cpp/regression"):
1213
cppstd = "17" if platform.system() == "Windows" else "gnu17"
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"version": "0.5",
3+
"requires": [
4+
"zlib/1.3.1#cac0f6daea041b0ccf42934163defb20%1765284699.337",
5+
"xnnpack/cci.20241203#ad9ea0f52b0891197b5139ad9746c79b%1765878220.067",
6+
"sleef/3.9.0#ec959dbbec0f86e44daa4a8e385cf79e%1766052574.907",
7+
"pthreadpool/cci.20231129#7bea77db5af9a570f7510a92cada3065%1741701495.916",
8+
"psimd/cci.20200517#83200a06ebb1ff39c5adff0d712c05fa%1700638971.11",
9+
"protobuf/6.32.1#b54f00da2e0f61d821330b5b638b0f80%1768401317.762",
10+
"pocketfft/0.0.0.cci.20240801#68062a9fc92c10cd3a612ad24f57636c%1722884640.938",
11+
"opentelemetry-cpp/1.24.0#d95a14847a31279733bae9076e30b1ad%1770977807.314",
12+
"openssl/3.6.1#2e0be4a996c7ca91feb31b7fe65117b9%1769599203.736",
13+
"openblas/0.3.30#aca4131c143d4c109923372e052c643c%1755683868.451",
14+
"onnx/1.20.0#d4e18543dc432018f80c66dd72c5a719%1766424397.845",
15+
"nnpack/0.0.0.cci.20230202#f370696d5d78b36b551cfd9c6ee0b803%1765467379.4",
16+
"nlohmann_json/3.11.3#45828be26eb619a2e04ca517bb7b828d%1701220705.259",
17+
"mimalloc/2.2.4#2548f5dbd79a3ded0cbaf00b297a2ecc%1758014162.287",
18+
"libuv/1.51.0#ea781dcacf58c65462ab0d3d75e9b002%1764745176.352",
19+
"libtorch/2.9.1#15078e553a9982321dc5c9ecebb27291%1770990078.865",
20+
"libnuma/2.0.19#2bb8a66d041db062de63e7f8a6d06fcd%1731341382.748",
21+
"libcurl/8.18.0#364bc3755cb9ef84ed9a7ae9c7efc1c1%1770984390.024",
22+
"libbacktrace/cci.20210118#a7691bfccd8caaf66309df196790a5a1%1722218217.276",
23+
"kleidiai/1.18.0#80a7e62eba979fe0f40ff210e5fd7440%1765816565.09",
24+
"ittapi/3.25.5#0a69ebab18bd8cfa17094fa7cc88203a%1768396972.499",
25+
"fxdiv/cci.20200417#0b3afe4c9d1b8d05f5f017984c8cb15a%1678543821.122",
26+
"fp16/cci.20210320#34dbac7f6fa3dee68830028b53de6c84%1700638970.182",
27+
"fmt/10.2.1#658771bb858b77f380be2ebb22c338e9%1735899167.615",
28+
"flatbuffers/24.12.23#80629ff8f39788daff0a904c0133ca7b%1743154510.004",
29+
"eigen/3.4.1#596b5f9599915bc0de4e7dd7fca20380%1761650594.516",
30+
"cpuinfo/cci.20251210#d736780a00f0de0e0638b2b0cd88845d%1765382268.331",
31+
"cpp-httplib/0.30.1#353559f1eab8a82ac5a6d2c33cc3d278%1770647395.187",
32+
"concurrentqueue/1.0.4#1e48e1c712bcfd892087c9c622a51502%1687274728.048",
33+
"abseil/20250814.0#c7e85f3abefdd1e05d0a8118f3320417%1761741487.631"
34+
],
35+
"build_requires": [
36+
"zlib/1.3.1#cac0f6daea041b0ccf42934163defb20%1765284699.337",
37+
"strawberryperl/5.32.1.1#8d114504d172cfea8ea1662d09b6333e%1751971032.423",
38+
"protobuf/6.32.1#b54f00da2e0f61d821330b5b638b0f80%1768401317.762",
39+
"pkgconf/2.5.1#93c2051284cba1279494a43a4fcfeae2%1757684701.089",
40+
"opentelemetry-proto/1.7.0#ed6d5bd761bef0afb0ba09676420b9ea%1749461220.268",
41+
"ninja/1.13.2#c8c5dc2a52ed6e4e42a66d75b4717ceb%1764096931.974",
42+
"nasm/2.16.01#31e26f2ee3c4346ecd347911bd126904%1745483323.489",
43+
"meson/1.10.1#426d7d29e3e5f7285cb8398d84546734%1772032339.966",
44+
"m4/1.4.19#1f9bd25d2bd53f49ad509caa467f57b9%1770982506.688",
45+
"libtool/2.4.7#14e7739cc128bc1623d2ed318008e47e%1755679003.847",
46+
"gnu-config/cci.20210814#466e9d4d7779e1c142443f7ea44b4284%1762363589.329",
47+
"cmake/4.2.3#c5c10d4c90874997553970589940ab9c%1769792867.095",
48+
"cmake/3.31.11#f325c933f618a1fcebc1e1c0babfd1ba%1769622857.944",
49+
"automake/1.16.5#b91b7c384c3deaa9d535be02da14d04f%1755524470.56",
50+
"autoconf/2.71#51077f068e61700d65bb05541ea1e4b0%1731054366.86",
51+
"abseil/20250814.0#c7e85f3abefdd1e05d0a8118f3320417%1761741487.631"
52+
],
53+
"python_requires": [],
54+
"config_requires": []
55+
}

0 commit comments

Comments
 (0)