Commit 78e9bf61 authored by incardon's avatar incardon
Browse files

Fixing SE+CLASS1

parent cbe97c7a
......@@ -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
......@@ -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 functor, 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);
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment