Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IFOS3D
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
KIT
GPI
AG
Software
IFOS3D
Commits
1d8d9a57
Commit
1d8d9a57
authored
2 weeks ago
by
Holger Obermaier
Browse files
Options
Downloads
Patches
Plain Diff
Remove no more needed functions for type float ***
parent
749b1320
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Draft: Porting from C to Cpp using Multidimensional Subscript Operator
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/exchange_buffer.cpp
+0
-66
0 additions, 66 deletions
src/exchange_buffer.cpp
src/exchange_buffer.hpp
+0
-12
0 additions, 12 deletions
src/exchange_buffer.hpp
with
0 additions
and
78 deletions
src/exchange_buffer.cpp
+
0
−
66
View file @
1d8d9a57
...
...
@@ -10,72 +10,6 @@
#endif
#ifdef BUFFER_EXCHANGE_USE_METHOD_OPENMP
int
buffer_push
(
float
*
__restrict__
buffer
,
float
***
__restrict__
src
,
int
i1_start
,
int
i1_end
,
int
i2_start
,
int
i2_end
,
int
i3_start
,
int
i3_end
,
int
buffer_counter
)
{
if
(
i1_end
<
i1_start
)
{
int
swap
=
i1_start
;
i1_start
=
i1_end
;
i1_end
=
swap
;
}
if
(
i2_end
<
i2_start
)
{
int
swap
=
i2_start
;
i2_start
=
i2_end
;
i2_end
=
swap
;
}
if
(
i3_end
<
i3_start
)
{
int
swap
=
i3_start
;
i3_start
=
i3_end
;
i3_end
=
swap
;
}
for
(
int
i1
=
i1_start
;
i1
<=
i1_end
;
i1
++
)
{
for
(
int
i2
=
i2_start
;
i2
<=
i2_end
;
i2
++
)
{
#pragma omp simd
for
(
int
i3
=
i3_start
;
i3
<=
i3_end
;
i3
++
)
{
buffer
[
buffer_counter
++
]
=
src
[
i1
][
i2
][
i3
];
}
}
}
return
buffer_counter
;
}
int
buffer_pop
(
float
***
__restrict__
dest
,
float
*
__restrict__
buffer
,
int
i1_start
,
int
i1_end
,
int
i2_start
,
int
i2_end
,
int
i3_start
,
int
i3_end
,
int
buffer_counter
)
{
if
(
i1_end
<
i1_start
)
{
int
swap
=
i1_start
;
i1_start
=
i1_end
;
i1_end
=
swap
;
}
if
(
i2_end
<
i2_start
)
{
int
swap
=
i2_start
;
i2_start
=
i2_end
;
i2_end
=
swap
;
}
if
(
i3_end
<
i3_start
)
{
int
swap
=
i3_start
;
i3_start
=
i3_end
;
i3_end
=
swap
;
}
for
(
int
i1
=
i1_start
;
i1
<=
i1_end
;
i1
++
)
{
for
(
int
i2
=
i2_start
;
i2
<=
i2_end
;
i2
++
)
{
#pragma omp simd
for
(
int
i3
=
i3_start
;
i3
<=
i3_end
;
i3
++
)
{
dest
[
i1
][
i2
][
i3
]
=
buffer
[
buffer_counter
++
];
}
}
}
return
buffer_counter
;
}
int
buffer_push
(
float
*
__restrict__
buffer
,
float3DTensorT
&
src
,
int
i1_start
,
int
i1_end
,
...
...
This diff is collapsed.
Click to expand it.
src/exchange_buffer.hpp
+
0
−
12
View file @
1d8d9a57
...
...
@@ -2,18 +2,6 @@
#define _EXCHANGE_BUFFER_H_INCLUDED_
#include
"float3DTensorT.hpp"
int
buffer_push
(
float
*
__restrict__
buffer
,
float
***
__restrict__
src
,
int
i1_start
,
int
i1_end
,
int
i2_start
,
int
i2_end
,
int
i3_start
,
int
i3_end
,
int
buffer_counter
);
int
buffer_pop
(
float
***
__restrict__
dest
,
float
*
__restrict__
buffer
,
int
i1_start
,
int
i1_end
,
int
i2_start
,
int
i2_end
,
int
i3_start
,
int
i3_end
,
int
buffer_counter
);
int
buffer_push
(
float
*
__restrict__
buffer
,
float3DTensorT
&
src
,
int
i1_start
,
int
i1_end
,
int
i2_start
,
int
i2_end
,
...
...
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