Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
pi
Commits
f932159b
Commit
f932159b
authored
Jul 14, 2020
by
Neil Gershenfeld
Browse files
try peer
parent
9867b41d
Changes
1
Hide whitespace changes
Inline
Side-by-side
CUDA/cudapic.cu
View file @
f932159b
...
...
@@ -27,7 +27,7 @@ int main(void) {
init
<<<
blocks
,
threads
>>>
(
darr
,
nloop
);
cudaDeviceSynchronize
();
cudaMemcpy
(
arr
,
darr
,
npts
*
sizeof
(
double
),
cudaMemcpyDeviceToHost
);
float
pi
=
0
;
double
pi
=
0
;
for
(
int
i
=
0
;
i
<
npts
;
++
i
)
pi
+=
arr
[
i
];
auto
tend
=
std
::
chrono
::
high_resolution_clock
::
now
();
...
...
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