Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
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_pdata
Commits
c34d6607
Commit
c34d6607
authored
3 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing CUDIFY
parent
c5421090
No related branches found
No related tags found
No related merge requests found
Pipeline
#4113
passed
3 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openfpm_devices
+1
-1
1 addition, 1 deletion
openfpm_devices
src/Grid/cuda/grid_dist_id_iterator_gpu.cuh
+6
-1
6 additions, 1 deletion
src/Grid/cuda/grid_dist_id_iterator_gpu.cuh
with
7 additions
and
2 deletions
openfpm_devices
@
281ac44b
Subproject commit
f25b793eac62f4e543d3045e0445ef4cae1f5aee
Subproject commit
281ac44b94959df24aa5168c7488e434806e4f99
This diff is collapsed.
Click to expand it.
src/Grid/cuda/grid_dist_id_iterator_gpu.cuh
+
6
−
1
View file @
c34d6607
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#ifndef GRID_DIST_ID_ITERATOR_DEC_GPU_CUH_
#ifndef GRID_DIST_ID_ITERATOR_DEC_GPU_CUH_
#define GRID_DIST_ID_ITERATOR_DEC_GPU_CUH_
#define GRID_DIST_ID_ITERATOR_DEC_GPU_CUH_
#include
"config.h"
#include
"Grid/Iterators/grid_dist_id_iterator.hpp"
#include
"Grid/Iterators/grid_dist_id_iterator.hpp"
#include
"Grid/grid_dist_util.hpp"
#include
"Grid/grid_dist_util.hpp"
#include
"Grid/Iterators/grid_dist_id_iterator_util.hpp"
#include
"Grid/Iterators/grid_dist_id_iterator_util.hpp"
...
@@ -30,7 +30,11 @@ struct launch_call_impl<1>
...
@@ -30,7 +30,11 @@ struct launch_call_impl<1>
template
<
typename
loc_grid_type
,
typename
ite_type
,
typename
itd_type
,
typename
functor_type
,
typename
...
argsT
>
template
<
typename
loc_grid_type
,
typename
ite_type
,
typename
itd_type
,
typename
functor_type
,
typename
...
argsT
>
inline
static
void
call
(
loc_grid_type
&
loc_grid
,
ite_type
&
ite
,
itd_type
&
itd
,
functor_type
f
,
argsT
...
args
)
inline
static
void
call
(
loc_grid_type
&
loc_grid
,
ite_type
&
ite
,
itd_type
&
itd
,
functor_type
f
,
argsT
...
args
)
{
{
#ifdef CUDIFY_USE_CUDA
CUDA_LAUNCH
(
grid_apply_functor_shared_bool
,
ite
,
loc_grid
.
toKernel
(),
itd
,
f
,
args
...
);
#else
auto
g
=
loc_grid
.
toKernel
();
auto
g
=
loc_grid
.
toKernel
();
auto
lamb
=
[
g
,
itd
,
f
,
args
...]
__device__
()
mutable
auto
lamb
=
[
g
,
itd
,
f
,
args
...]
__device__
()
mutable
...
@@ -41,6 +45,7 @@ struct launch_call_impl<1>
...
@@ -41,6 +45,7 @@ struct launch_call_impl<1>
};
};
CUDA_LAUNCH_LAMBDA_TLS
(
ite
,
lamb
);
CUDA_LAUNCH_LAMBDA_TLS
(
ite
,
lamb
);
#endif
}
}
};
};
...
...
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