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-scatter
Commits
9d0fa071
Commit
9d0fa071
authored
Dec 19, 2017
by
rusty1s
Browse files
added num threads
parent
411e3e38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
torch_scatter/kernel/generic/kernel.cu
torch_scatter/kernel/generic/kernel.cu
+3
-0
torch_scatter/kernel/kernel.cu
torch_scatter/kernel/kernel.cu
+1
-0
No files found.
torch_scatter/kernel/generic/kernel.cu
View file @
9d0fa071
...
@@ -10,6 +10,9 @@ void check(THCState *state, THCTensor *output, THCudaLongTensor *index, THCTenso
...
@@ -10,6 +10,9 @@ void check(THCState *state, THCTensor *output, THCudaLongTensor *index, THCTenso
void
scatter_
(
mul
)(
THCState
*
state
,
int
dim
,
THCTensor
*
output
,
THCudaLongTensor
*
index
,
THCTensor
*
input
)
{
void
scatter_
(
mul
)(
THCState
*
state
,
int
dim
,
THCTensor
*
output
,
THCudaLongTensor
*
index
,
THCTensor
*
input
)
{
check
(
state
,
output
,
index
,
input
);
check
(
state
,
output
,
index
,
input
);
const
ptrdiff_t
n
=
THCudaLongTensor_nElement
(
state
,
index
);
const
dim3
block
=
dim3
(
NUM_THREADS
);
printf
(
"mul"
);
printf
(
"mul"
);
}
}
...
...
torch_scatter/kernel/kernel.cu
View file @
9d0fa071
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
#define check TH_CONCAT_2(check_kernel_, Real)
#define check TH_CONCAT_2(check_kernel_, Real)
#define MAX_DIMS 25
#define MAX_DIMS 25
#define NUM_THREADS 32 * 16
#include "generic/kernel.cu"
#include "generic/kernel.cu"
#include "THCGenerateAllTypes.h"
#include "THCGenerateAllTypes.h"
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