Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cuda-memory
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ResearchAndDevelopment
cuda-memory
Commits
acbac229
Commit
acbac229
authored
1 year ago
by
Bram Veenboer
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused argument from run_benchmark
parent
f663f631
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.cu
+12
-12
12 additions, 12 deletions
main.cu
with
12 additions
and
12 deletions
main.cu
+
12
−
12
View file @
acbac229
...
...
@@ -64,8 +64,8 @@ bool verify_host_memory(float *h_buffer, uint32_t n, float value) {
void
run_benchmark
(
const
char
*
name
,
float
*
h_input_1
,
float
*
h_input_2
,
float
*
h_output
,
float
v_input_1
,
float
v_input_2
,
float
v_output
,
float
*
d_output
,
float
v_output_reference
,
uint32_t
n
,
std
::
function
<
void
(
void
)
>
function_input
,
float
v_output
,
float
v_output_reference
,
uint32_t
n
,
std
::
function
<
void
(
void
)
>
function_input
,
std
::
function
<
void
(
void
)
>
function_kernel
,
std
::
function
<
void
(
void
)
>
function_output
,
CUstream
stream
,
int
num_repeats
=
100
,
int
num_warmups
=
10
)
{
...
...
@@ -218,7 +218,7 @@ void benchmark_allochost_alloc(const char *name, int n, float v_input_1,
};
run_benchmark
(
name
,
h_input_1
,
h_input_2
,
h_output
,
v_input_1
,
v_input_2
,
v_output
,
d_output
,
v_output_reference
,
n
,
function_input
,
v_output
,
v_output_reference
,
n
,
function_input
,
function_kernel
,
function_output
,
stream
,
num_repeats
,
num_warmups
);
...
...
@@ -272,7 +272,7 @@ void benchmark_allochost(const char *name, int n, float v_input_1,
};
run_benchmark
(
name
,
h_input_1
,
h_input_2
,
h_output
,
v_input_1
,
v_input_2
,
v_output
,
m_output
,
v_output_reference
,
n
,
function_input
,
v_output
,
v_output_reference
,
n
,
function_input
,
function_kernel
,
function_output
,
stream
,
num_repeats
,
num_warmups
);
...
...
@@ -312,7 +312,7 @@ void benchmark_hostalloc(const char *name, int n, float v_input_1,
};
run_benchmark
(
name
,
h_input_1
,
h_input_2
,
h_output
,
v_input_1
,
v_input_2
,
v_output
,
h_output
,
v_output_reference
,
n
,
function_input
,
v_output
,
v_output_reference
,
n
,
function_input
,
function_kernel
,
function_output
,
stream
,
num_repeats
,
num_warmups
);
...
...
@@ -352,7 +352,7 @@ void benchmark_allochost_hostpointer(const char *name, int n, float v_input_1,
};
run_benchmark
(
name
,
h_input_1
,
h_input_2
,
h_output
,
v_input_1
,
v_input_2
,
v_output
,
h_output
,
v_output_reference
,
n
,
function_input
,
v_output
,
v_output_reference
,
n
,
function_input
,
function_kernel
,
function_output
,
stream
,
num_repeats
,
num_warmups
);
...
...
@@ -409,7 +409,7 @@ void benchmark_allocmanaged(const char *name, int n, float v_input_1,
};
run_benchmark
(
name
,
d_input_1
,
d_input_2
,
d_output
,
v_input_1
,
v_input_2
,
v_output
,
d_output
,
v_output_reference
,
n
,
function_input
,
v_output
,
v_output_reference
,
n
,
function_input
,
function_kernel
,
function_output
,
stream
,
num_repeats
,
num_warmups
);
...
...
@@ -462,7 +462,7 @@ void benchmark_hybrid(const char *name, int n, float v_input_1, float v_input_2,
};
run_benchmark
(
name
,
d_input_1
,
d_input_2
,
h_output
,
v_input_1
,
v_input_2
,
v_output
,
d_output
,
v_output_reference
,
n
,
function_input
,
v_output
,
v_output_reference
,
n
,
function_input
,
function_kernel
,
function_output
,
stream
,
num_repeats
,
num_warmups
);
...
...
@@ -524,12 +524,12 @@ int main() {
num_warmups
);
flags
=
CU_MEMHOSTALLOC_DEVICEMAP
;
benchmark_hostalloc
(
"cuMemHostAlloc (devicemap)"
,
n
,
v_input_1
,
v_input_2
,
v_output
,
v_output_reference
,
stream
,
device
,
flags
,
num_repeats
,
num_warmups
);
v_output
,
v_output_reference
,
stream
,
device
,
flags
,
num_repeats
,
num_warmups
);
flags
=
CU_MEMHOSTALLOC_WRITECOMBINED
;
benchmark_hostalloc
(
"cuMemHostAlloc (writecombined)"
,
n
,
v_input_1
,
v_input_2
,
v_output
,
v_output_reference
,
stream
,
device
,
flags
,
num_repeats
,
num_warmups
);
v_output
,
v_output_reference
,
stream
,
device
,
flags
,
num_repeats
,
num_warmups
);
CHECK_CUDA_ERROR
(
cuDeviceGetAttribute
(
&
property
,
CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY
,
device
));
...
...
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