Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_devices
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_devices
Commits
07c4d629
Commit
07c4d629
authored
11 months ago
by
yaskovet
Browse files
Options
Downloads
Patches
Plain Diff
Fix missing FixConfigLaunch when nvcc not found
parent
ece04603
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#7214
failed
11 months ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/util/cudify/cuda/cudify_cuda.hpp
+2
-4
2 additions, 4 deletions
src/util/cudify/cuda/cudify_cuda.hpp
with
2 additions
and
4 deletions
src/util/cudify/cuda/cudify_cuda.hpp
+
2
−
4
View file @
07c4d629
...
...
@@ -335,11 +335,10 @@ static void init_wrappers()
template
<
typename
...
Args
,
typename
ite_type
>
void
CUDA_LAUNCH
(
void
(
*
_kernel
)(
Args
...),
ite_type
ite
,
Args
...
args
)
{
FixConfigLaunch
(
_kernel
,
ite
.
wthr
,
ite
.
thr
);
// std::cout << "DEMANGLE " << typeid(decltype(_kernel)).name() << " " << ite.wthr.x << " " << ite.wthr.y << " " << ite.wthr.z << "/" << ite.thr.x << " " << ite.thr.y << " " << ite.thr.z << std::endl;
#ifdef __NVCC__
FixConfigLaunch
(
_kernel
,
ite
.
wthr
,
ite
.
thr
);
_kernel
<<<
ite
.
wthr
,
ite
.
thr
>>>
(
args
...);
#else
std
::
cout
<<
__FILE__
<<
":"
<<
__LINE__
<<
" "
<<
"CUDA_LAUNCH not implemented for this compiler"
<<
std
::
endl
;
...
...
@@ -349,11 +348,10 @@ void CUDA_LAUNCH(void (* _kernel)(Args...),ite_type ite,Args... args)
template
<
typename
...
Args
>
void
CUDA_LAUNCH_DIM3
(
void
(
*
_kernel
)(
Args
...),
dim3
wthr
,
dim3
thr
,
Args
...
args
)
{
FixConfigLaunch
(
_kernel
,
wthr
,
thr
);
// std::cout << "DEMANGLE " << typeid(decltype(_kernel)).name() << " " << wthr.x << " " << wthr.y << " " << wthr.z << "/" << thr.x << " " << thr.y << " " << thr.z << std::endl;
#ifdef __NVCC__
FixConfigLaunch
(
_kernel
,
wthr
,
thr
);
_kernel
<<<
wthr
,
thr
>>>
(
args
...);
#else
std
::
cout
<<
__FILE__
<<
":"
<<
__LINE__
<<
" "
<<
"CUDA_LAUNCH_DIM3 not implemented for this compiler"
<<
std
::
endl
;
...
...
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