Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Timer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
数学の武士
Timer
Commits
12354f5e
Commit
12354f5e
authored
2 years ago
by
数学の武士
Browse files
Options
Downloads
Patches
Plain Diff
cuda upd
parent
2e7ff45e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Event.cu
+17
-26
17 additions, 26 deletions
Event.cu
Jikan.h
+2
-2
2 additions, 2 deletions
Jikan.h
JikanDepths.cu
+22
-20
22 additions, 20 deletions
JikanDepths.cu
with
41 additions
and
48 deletions
Event.cu
+
17
−
26
View file @
12354f5e
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
using
namespace
std
;
using
namespace
std
;
#ifdef INCLUDE_GPU_TIMER
void
EventData
::
InitEventsCUDA
()
void
EventData
::
InitEventsCUDA
()
{
{
cudaEventCreate
(
&
(
this
->
gpu_start
));
cudaEventCreate
(
&
(
this
->
gpu_start
));
...
@@ -25,14 +26,4 @@ void EventData::DeinitEventsCUDA()
...
@@ -25,14 +26,4 @@ void EventData::DeinitEventsCUDA()
this
->
ifCUDAinit
=
false
;
this
->
ifCUDAinit
=
false
;
}
}
}
}
#endif
// void EventData::CUDASyncStart()
\ No newline at end of file
// {
// cudaEventRecord (this->gpu_start);
// }
// void EventData::CUDASyncStart()
// {
// cudaEventRecord(this->gpu_end);
// cudaEventSynchronize(this->gpu_end);
// }
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Jikan.h
+
2
−
2
View file @
12354f5e
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
//------------------------- Jikan-config ---------------------------------------------
//------------------------- Jikan-config ---------------------------------------------
#define TIMER_ON
#define TIMER_ON
#define INCLUDE_GPU_TIMER
//
#define INCLUDE_GPU_TIMER
#define INCLUDE_MPI
//
#define INCLUDE_MPI
// #define INCLUDE_OPEN_MP
// #define INCLUDE_OPEN_MP
#define SAVE_TIME_SERIES
#define SAVE_TIME_SERIES
...
...
This diff is collapsed.
Click to expand it.
JikanDepths.cu
+
22
−
20
View file @
12354f5e
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
using
namespace
std
;
using
namespace
std
;
#ifdef INCLUDE_GPU_TIMER
void
Jikan
::
StartCUDASync
(
const
string
&
name
)
void
Jikan
::
StartCUDASync
(
const
string
&
name
)
{
{
cudaEventRecord
((
this
->
Events
)[
name
].
gpu_start
);
cudaEventRecord
((
this
->
Events
)[
name
].
gpu_start
);
...
@@ -32,3 +33,4 @@ void Jikan::CUDAGetTime(const string& name)
...
@@ -32,3 +33,4 @@ void Jikan::CUDAGetTime(const string& name)
(
this
->
Events
)[
name
].
time_series
.
push_back
(
GPUtime
);
(
this
->
Events
)[
name
].
time_series
.
push_back
(
GPUtime
);
#endif
#endif
}
}
#endif
\ No newline at end of file
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