Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_data
Commits
58a60102
Commit
58a60102
authored
2 years ago
by
Abhinav Singh
Browse files
Options
Downloads
Patches
Plain Diff
ODEINT GPU UPDATE
parent
637b8aab
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5304
failed
2 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Vector/cuda/map_vector_cuda_ker.cuh
+28
-0
28 additions, 0 deletions
src/Vector/cuda/map_vector_cuda_ker.cuh
with
28 additions
and
0 deletions
src/Vector/cuda/map_vector_cuda_ker.cuh
+
28
−
0
View file @
58a60102
...
...
@@ -534,6 +534,13 @@ namespace openfpm
return
getGPUIterator
(
n_thr
);
}
//Stub for some expression
void
init
()
const
{}
__host__
__device__
auto
value
(
unsigned
int
p
)
->
decltype
(
base
.
template
get
<
0
>(
grid_key_dx
<
1
>
(
0
)))
{
return
get
<
0
>
(
p
);
}
/*! \brief Get an iterator for the GPU
*
*
...
...
@@ -546,6 +553,7 @@ namespace openfpm
return
base
.
getGPUIterator
(
start
,
stop_
,
n_thr
);
}
/*! \brief operator= this operator absorb the pointers, consider that this object wrap device pointers
*
* \param object to copy
...
...
@@ -559,6 +567,16 @@ namespace openfpm
return
*
this
;
}
__device__
__host__
vector_gpu_ker
<
T
,
layout_base
>
&
getVector
()
{
return
*
this
;
}
__device__
__host__
const
vector_gpu_ker
<
T
,
layout_base
>
&
getVector
()
const
{
return
*
this
;
}
/*! \brief Return the base
*
* \return the base
...
...
@@ -742,6 +760,16 @@ namespace openfpm
return
vref
.
getGPUItertatorTo
(
stop
,
n_thr
);
}
vector_gpu_ker
<
T
,
layout_base
>
&
getVector
()
{
return
*
this
;
}
const
vector_gpu_ker
<
T
,
layout_base
>
&
getVector
()
const
{
return
*
this
;
}
__host__
vector_gpu_ker_ref
<
T
,
layout_base
>
&
operator
=
(
const
vector_gpu_ker
<
T
,
layout_base
>
&
v
)
{
vref
.
operator
=
(
v
);
...
...
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