Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_devices
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_devices
Commits
4b8486c7
Commit
4b8486c7
authored
Jan 10, 2021
by
i-bird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing CUDA on CPU in case of no work
parent
a48cbfb9
Pipeline
#2652
passed with stages
in 31 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/util/cudify/cudify_sequencial.hpp
src/util/cudify/cudify_sequencial.hpp
+4
-2
No files found.
src/util/cudify/cudify_sequencial.hpp
View file @
4b8486c7
...
...
@@ -12,7 +12,7 @@
#define CUDIFY_ACTIVE
#include "util/cuda_util.hpp"
#include
"boost/bind.hpp"
#include
<boost/bind/bind.hpp>
#include <type_traits>
#ifdef HAVE_BOOST_CONTEXT
#include <boost/context/continuation.hpp>
...
...
@@ -330,6 +330,8 @@ void launch_kernel(boost::context::detail::transfer_t par)
template
<
typename
lambda_f
,
typename
ite_type
>
static
void
exe_kernel
(
lambda_f
f
,
ite_type
&
ite
)
{
if
(
ite
.
nthrs
()
==
0
||
ite
.
nblocks
()
==
0
)
{
return
;}
if
(
mem_stack
.
size
()
<
ite
.
nthrs
())
{
int
old_size
=
mem_stack
.
size
();
...
...
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