Skip to content

build: Copy only the host platform's libtorch - #3

Merged
markhammond merged 1 commit into
mainfrom
build/host-platform-natives
Oct 20, 2026
Merged

markhammond merged 1 commit into
mainfrom
build/host-platform-natives

Conversation

@markhammond

@markhammond markhammond commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Tests and samples now build for the machine that builds them. TorchSharp-cpu brings native libtorch for six platforms, and each test or sample copied all of them: about 1 GB a project. Now each copies its own platform's alone, about 250–380 MB.

Tests and samples now build for the machine that builds them, so
TorchSharp-cpu's native libraries arrive for that platform alone
rather than all six: about 250 MB a project instead of 1 GB. On a CI
runner every copy is real disk.

The output path stays bin/<Configuration>/net10.0. The packages in
src are untouched and stay portable; packed, they match 0.2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@markhammond
markhammond merged commit e0650f7 into main Oct 20, 2026
3 checks passed
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.

1 participant