Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
3b2139e2
Unverified
Commit
3b2139e2
authored
Nov 29, 2021
by
q.yao
Committed by
GitHub
Nov 29, 2021
Browse files
[Fix] Fix build with cuda9.0 (#1525)
* Fix build with cuda9.0 * add note about why do we use torch/types.h
parent
46b2cb37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
mmcv/ops/csrc/common/cuda/correlation_cuda.cuh
mmcv/ops/csrc/common/cuda/correlation_cuda.cuh
+5
-1
mmcv/ops/csrc/common/pytorch_device_registry.hpp
mmcv/ops/csrc/common/pytorch_device_registry.hpp
+5
-1
No files found.
mmcv/ops/csrc/common/cuda/correlation_cuda.cuh
View file @
3b2139e2
...
...
@@ -14,7 +14,11 @@
#include <cuda.h>
#include <cuda_runtime.h>
#include <torch/extension.h>
// Using <torch/extension.h> is recommended in the official documentation in
// https://pytorch.org/tutorials/advanced/cpp_extension.html#writing-the-c-op.
// However, we use <torch/types.h> for compatibility with CUDA 9.0
// Read https://github.com/pytorch/extension-cpp/issues/35 for more details.
#include <torch/types.h>
#include <iostream>
#include <vector>
...
...
mmcv/ops/csrc/common/pytorch_device_registry.hpp
View file @
3b2139e2
#ifndef PYTORCH_DEVICE_REGISTRY_H
#define PYTORCH_DEVICE_REGISTRY_H
#include <torch/extension.h>
// Using <torch/extension.h> is recommended in the official documentation in
// https://pytorch.org/tutorials/advanced/cpp_extension.html#writing-the-c-op.
// However, we use <torch/types.h> for compatibility with CUDA 9.0
// Read https://github.com/pytorch/extension-cpp/issues/35 for more details.
#include <torch/types.h>
#include <cassert>
#include <functional>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment