Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
aml
Commits
83e7c188
Commit
83e7c188
authored
Dec 09, 2020
by
Swann Perarnau
Browse files
Merge branch 'area_cuda_unified' into 'staging'
[feature] Area Cuda Unified See merge request
!170
parents
949a7717
ca02014e
Pipeline
#12142
passed with stages
in 11 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
include/aml/area/cuda.h
View file @
83e7c188
...
...
@@ -121,6 +121,11 @@ extern struct aml_area_ops aml_area_cuda_ops;
**/
extern
struct
aml_area
aml_area_cuda
;
/**
* Cuda area allocating unified memory.
**/
extern
struct
aml_area
aml_area_cuda_unified
;
/** Implementation of aml_area_data for cuda areas. **/
struct
aml_area_cuda_data
{
/** Area allocation flags. **/
...
...
src/area/cuda.c
View file @
83e7c188
...
...
@@ -290,6 +290,11 @@ struct aml_area_cuda_data aml_area_cuda_data_default = {
.
device
=
-
1
,
};
struct
aml_area_cuda_data
aml_area_cuda_data_unified
=
{
.
flags
=
AML_AREA_CUDA_FLAG_ALLOC_UNIFIED
,
.
device
=
-
1
,
};
struct
aml_area_ops
aml_area_cuda_ops
=
{
.
mmap
=
aml_area_cuda_mmap
,
.
munmap
=
aml_area_cuda_munmap
,
...
...
@@ -300,3 +305,7 @@ struct aml_area aml_area_cuda = {
.
ops
=
&
aml_area_cuda_ops
,
.
data
=
(
struct
aml_area_data
*
)(
&
aml_area_cuda_data_default
)
};
struct
aml_area
aml_area_cuda_unified
=
{
.
ops
=
&
aml_area_cuda_ops
,
.
data
=
(
struct
aml_area_data
*
)(
&
aml_area_cuda_data_unified
)};
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment