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

Unlink libtvm.so and libcuda.so in older TVM #2

Open
wants to merge 6 commits into
base: origin
Choose a base branch
from
Open

Conversation

jinboci
Copy link
Owner

@jinboci jinboci commented Jul 8, 2020

Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

@@ -35,7 +35,9 @@ if(USE_CUDA)

list(APPEND TVM_LINKER_LIBS ${CUDA_NVRTC_LIBRARY})
list(APPEND TVM_RUNTIME_LINKER_LIBS ${CUDA_CUDART_LIBRARY})
list(APPEND TVM_RUNTIME_LINKER_LIBS ${CUDA_CUDA_LIBRARY})
if(CUDA_COMPILE_ONLY)
list(APPEND TVM_RUNTIME_LINKER_LIBS ${CUDA_CUDA_LIBRARY})
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does not seem to comply with "Build libtvm.so without libcuda.so"


PackedFunc CUDAModuleNode::GetFunction(
const std::string& name,
const ObjectPtr<Object>& sptr_to_self) {
#ifdef CUDA_COMPILE_ONLY
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one actually complies with "Build libtvm.so without libcuda.so"

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