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
78e9bf61
Commit
78e9bf61
authored
Dec 31, 2021
by
incardon
Browse files
Fixing SE+CLASS1
parent
cbe97c7a
Changes
3
Hide whitespace changes
Inline
Side-by-side
example/SparseGrid/2_gray_scott_3d_sparse_gpu_opt/Makefile
View file @
78e9bf61
...
...
@@ -36,7 +36,7 @@ LDIR =
OBJ
=
main.o
%.o
:
%.cu
$(CUDA_CC)
-O3
$(OPT)
-g
-c
--std
=
c++14
-o
$@
$<
$(INCLUDE_PATH_NVCC)
$(CUDA_CC)
-O3
$(OPT)
-g
-c
--std
=
c++14
-o
$@
$<
$(INCLUDE_PATH_NVCC)
gray_scott_sparse_gpu
:
$(OBJ)
$(CUDA_CC_LINK)
-o
$@
$^
$(LIBS_PATH)
$(LIBS_SELECT)
...
...
openfpm_devices
@
f15ba7f5
Subproject commit
b706933d26fabca7b931ec74f8fa9ecbe7824e72
Subproject commit
f15ba7f565815f9c827d3e438f278aca877999b9
src/Grid/cuda/grid_dist_id_iterator_gpu.cuh
View file @
78e9bf61
...
...
@@ -28,9 +28,19 @@ template<>
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
unctor
,
argsT
...
args
)
inline
static
void
call
(
loc_grid_type
&
loc_grid
,
ite_type
&
ite
,
itd_type
&
itd
,
functor_type
f
,
argsT
...
args
)
{
CUDA_LAUNCH
(
grid_apply_functor_shared_bool
,
ite
,
loc_grid
.
toKernel
(),
itd
,
functor
,
args
...
);
auto
g
=
loc_grid
.
toKernel
();
auto
lamb
=
[
g
,
itd
,
f
,
args
...]
__device__
()
mutable
{
__shared__
bool
is_empty_block
;
f
(
g
,
itd
,
is_empty_block
,
args
...);
};
CUDA_LAUNCH_LAMBDA_TLS
(
ite
,
lamb
);
}
};
...
...
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