Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs267
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
recolic-hust
cs267
Commits
36eb3de2
There was an error fetching the commit references. Please try again later.
Unverified
Commit
36eb3de2
authored
6 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
sync
parent
5dbe0fbb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hw2/serial.cu
+2
-2
2 additions, 2 deletions
hw2/serial.cu
with
2 additions
and
2 deletions
hw2/serial.cu
+
2
−
2
View file @
36eb3de2
...
...
@@ -161,6 +161,8 @@ int main(int argc, char **argv) {
FILE
*
fsave
=
savename
?
fopen
(
savename
,
"w"
)
:
NULL
;
FILE
*
fsum
=
sumname
?
fopen
(
sumname
,
"a"
)
:
NULL
;
cudaDeviceReset
();
_r267_stats
*
r267_stats
=
nullptr
;
rlib
::
cuda_assert
(
cudaMallocManaged
(
&
r267_stats
,
sizeof
(
_r267_stats
)));
...
...
@@ -187,8 +189,6 @@ int main(int argc, char **argv) {
//
double
simulation_time
=
read_timer
();
cudaDeviceReset
();
for
(
int
step
=
0
;
step
<
NSTEPS
;
step
++
)
{
r267_stats
->
navg
=
0
;
r267_stats
->
davg
=
0.0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment