-
Notifications
You must be signed in to change notification settings - Fork 7
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
Initial support for PyTorch C++ API #116
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment was marked as outdated.
This comment was marked as outdated.
It builds on CI, but gives SEGFAULT, -- Found Torch: /Users/runner/micromamba/envs/lc/lib/libtorch.dylib
-- Configuring done (3.4s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/runner/work/lc/lc/integration_tests/test-pytorch
[ 50%] Building CXX object CMakeFiles/pytorch_01.cpp.dir/pytorch_01.cpp.o
[100%] Linking CXX executable pytorch_01.cpp
ld: warning: directory not found for option '-L/Users/runner/micromamba/envs/lc/lib/intel64'
ld: warning: directory not found for option '-L/Users/runner/micromamba/envs/lc/lib/intel64_win'
ld: warning: directory not found for option '-L/Users/runner/micromamba/envs/lc/lib/win-x64'
[100%] Built target pytorch_01.cpp
Test project /Users/runner/work/lc/lc/integration_tests/test-pytorch
Start 1: pytorch_01.cpp
Errors while running CTest
1/1 Test #1: pytorch_01.cpp ...................***Exception: SegFault 1.51 sec |
So PyTorch C++ API testing works good on Linux CI. On macOS there is some issue with clang available on conda. It gives segmentation faults/bus errors. So we will test on Linux CI for now. |
Okay. So the work flow is clear for PyTorch. Tomorrow I will make LC compile PyTorch C++ API code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
LC parses the AST of
integration_tests/pytorch_01.cpp
as follows,