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
apex
Commits
38bada23
"examples/cpp/vscode:/vscode.git/clone" did not exist on "35d644628fd31b1df00e2bc5b601b89c5fd335c6"
Commit
38bada23
authored
Jan 17, 2019
by
Jie
Browse files
patching grid reduction to be volta-safe
parent
438f6f9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
csrc/welford.cu
csrc/welford.cu
+2
-0
No files found.
csrc/welford.cu
View file @
38bada23
...
@@ -508,6 +508,7 @@ welford_kernel_c_last(
...
@@ -508,6 +508,7 @@ welford_kernel_c_last(
}
}
__threadfence
();
__threadfence
();
__syncthreads
();
// ensuring writes to staging_ is visible to all blocks
__shared__
bool
is_last_block_done
;
__shared__
bool
is_last_block_done
;
// mark block done
// mark block done
...
@@ -724,6 +725,7 @@ __global__ void reduce_bn_c_last_kernel(
...
@@ -724,6 +725,7 @@ __global__ void reduce_bn_c_last_kernel(
}
}
__threadfence
();
__threadfence
();
__syncthreads
();
// ensuring writes to staging_ is visible to all blocks
__shared__
bool
is_last_block_done
;
__shared__
bool
is_last_block_done
;
// mark block done
// mark block done
...
...
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