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
torch-sparse
Commits
9fcc4d8a
Commit
9fcc4d8a
authored
Jul 29, 2021
by
rusty1s
Browse files
[skip ci]
parent
7134d457
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
.github/workflows/building.yml
.github/workflows/building.yml
+2
-1
csrc/cuda/utils.cuh
csrc/cuda/utils.cuh
+2
-0
No files found.
.github/workflows/building.yml
View file @
9fcc4d8a
...
...
@@ -10,7 +10,8 @@ jobs:
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-16.04
,
macos-10.15
,
windows-latest
]
# os: [ubuntu-16.04, macos-10.15, windows-latest]
os
:
[
windows-latest
]
python-version
:
[
3.6
,
3.7
,
3.8
,
3.9
]
torch-version
:
[
1.8.0
,
1.9.0
]
cuda-version
:
[
'
cpu'
,
'
cu101'
,
'
cu102'
,
'
cu111'
]
...
...
csrc/cuda/utils.cuh
View file @
9fcc4d8a
...
...
@@ -6,11 +6,13 @@
AT_ASSERTM(x.device().is_cuda(), #x " must be CUDA tensor")
#define CHECK_INPUT(x) AT_ASSERTM(x, "Input mismatch")
#ifndef _WIN32
__device__
__inline__
at
::
Half
__shfl_sync
(
const
unsigned
mask
,
const
at
::
Half
var
,
const
unsigned
int
srcLane
)
{
return
__shfl_sync
(
mask
,
(
__half
)
var
,
srcLane
);
}
#endif
__device__
__inline__
at
::
Half
__shfl_down_sync
(
const
unsigned
mask
,
const
at
::
Half
var
,
...
...
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