Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_pdata
Commits
c34d6607
Commit
c34d6607
authored
Jan 01, 2022
by
incardon
Browse files
Fixing CUDIFY
parent
c5421090
Pipeline
#4113
passed with stages
in 41 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
openfpm_devices
@
281ac44b
Subproject commit
f25b793eac62f4e543d3045e0445ef4cae1f5aee
Subproject commit
281ac44b94959df24aa5168c7488e434806e4f99
src/Grid/cuda/grid_dist_id_iterator_gpu.cuh
View file @
c34d6607
...
...
@@ -8,7 +8,7 @@
#ifndef 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/grid_dist_util.hpp"
#include "Grid/Iterators/grid_dist_id_iterator_util.hpp"
...
...
@@ -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
>
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
lamb
=
[
g
,
itd
,
f
,
args
...]
__device__
()
mutable
...
...
@@ -41,6 +45,7 @@ struct launch_call_impl<1>
};
CUDA_LAUNCH_LAMBDA_TLS
(
ite
,
lamb
);
#endif
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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