{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/extension-cpp/issues/25","repository_url":"https://api.github.com/repos/pytorch/extension-cpp","labels_url":"https://api.github.com/repos/pytorch/extension-cpp/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/extension-cpp/issues/25/comments","events_url":"https://api.github.com/repos/pytorch/extension-cpp/issues/25/events","html_url":"https://github.com/pytorch/extension-cpp/issues/25","id":389206544,"node_id":"MDU6SXNzdWUzODkyMDY1NDQ=","number":25,"title":"Unrelated Issue","user":{"login":"kris-singh","id":11256139,"node_id":"MDQ6VXNlcjExMjU2MTM5","avatar_url":"https://avatars1.githubusercontent.com/u/11256139?v=4","gravatar_id":"","url":"https://api.github.com/users/kris-singh","html_url":"https://github.com/kris-singh","followers_url":"https://api.github.com/users/kris-singh/followers","following_url":"https://api.github.com/users/kris-singh/following{/other_user}","gists_url":"https://api.github.com/users/kris-singh/gists{/gist_id}","starred_url":"https://api.github.com/users/kris-singh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kris-singh/subscriptions","organizations_url":"https://api.github.com/users/kris-singh/orgs","repos_url":"https://api.github.com/users/kris-singh/repos","events_url":"https://api.github.com/users/kris-singh/events{/privacy}","received_events_url":"https://api.github.com/users/kris-singh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-10T09:17:47Z","updated_at":"2018-12-10T17:02:50Z","closed_at":null,"author_association":"NONE","body":"\r\n\r\nLearning the internals of pytorch. I need to test some c++ functions that I build with aten. \r\nI have followed this example https://github.com/goldsborough/examples/blob/cpp/cpp/mnist/CMakeLists.txt.\r\nI don't want to write the CMakeList file for every source file that i write. Is there a way to link against the .dylib files using -l flag. I tried g++ --std=c++11 -l/anaconda3/envs/pytorch1.0/lib/python3.6/site-packages/torch/lib/libtorch.dylib -I/anaconda3/envs/pytorch1.0/lib/python3.6/sitepackages/torch/lib/include  example-app.cpp -o example but this fails. \r\n\r\nCould you let me know a way to do this? Or why is it preferred to make CmakeFiles for small examples\r\n\r\n\r\ncc: @goldsborough \r\n"},"comment":{"url":"https://api.github.com/repos/pytorch/extension-cpp/issues/comments/445891178","html_url":"https://github.com/pytorch/extension-cpp/issues/25#issuecomment-445891178","issue_url":"https://api.github.com/repos/pytorch/extension-cpp/issues/25","id":445891178,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTg5MTE3OA==","user":{"login":"goldsborough","id":6429851,"node_id":"MDQ6VXNlcjY0Mjk4NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/6429851?v=4","gravatar_id":"","url":"https://api.github.com/users/goldsborough","html_url":"https://github.com/goldsborough","followers_url":"https://api.github.com/users/goldsborough/followers","following_url":"https://api.github.com/users/goldsborough/following{/other_user}","gists_url":"https://api.github.com/users/goldsborough/gists{/gist_id}","starred_url":"https://api.github.com/users/goldsborough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goldsborough/subscriptions","organizations_url":"https://api.github.com/users/goldsborough/orgs","repos_url":"https://api.github.com/users/goldsborough/repos","events_url":"https://api.github.com/users/goldsborough/events{/privacy}","received_events_url":"https://api.github.com/users/goldsborough/received_events","type":"User","site_admin":false},"created_at":"2018-12-10T17:02:50Z","updated_at":"2018-12-10T17:02:50Z","author_association":"COLLABORATOR","body":"I recommend using the `CMakeLists.txt` because it will automatically do the right thing when PyTorch libraries get updated. If you want to see the full command that CMake ends up running, you can use `make VERBOSE=1` when compiling, then you'll see the full compiler invocation including the linker flags and such, and you can copy paste those into your terminal if you want to."}}
{"actor":{"display_login":"goldsborough"}}