Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIBP-Hummer
BioEM
Commits
f4d2e710
Commit
f4d2e710
authored
Jul 07, 2014
by
David Rohr
Browse files
numa aware allocation of FFT scratch space
parent
2f7652fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
bioem.cpp
View file @
f4d2e710
...
...
@@ -319,10 +319,14 @@ int bioem::run()
const
int
count
=
omp_get_max_threads
();
localCCT
=
new
mycomplex_t
*
[
count
];
lCC
=
new
myfloat_t
*
[
count
];
for
(
int
i
=
0
;
i
<
count
;
i
++
)
#pragma omp parallel
{
localCCT
[
i
]
=
(
mycomplex_t
*
)
myfftw_malloc
(
sizeof
(
mycomplex_t
)
*
param
.
param_device
.
NumberPixels
*
param
.
param_device
.
NumberFFTPixels1D
);
lCC
[
i
]
=
(
myfloat_t
*
)
myfftw_malloc
(
sizeof
(
myfloat_t
)
*
param
.
param_device
.
NumberPixels
*
param
.
param_device
.
NumberPixels
);
#pragma omp critical
{
const
int
i
=
omp_get_thread_num
();
localCCT
[
i
]
=
(
mycomplex_t
*
)
myfftw_malloc
(
sizeof
(
mycomplex_t
)
*
param
.
param_device
.
NumberPixels
*
param
.
param_device
.
NumberFFTPixels1D
);
lCC
[
i
]
=
(
myfloat_t
*
)
myfftw_malloc
(
sizeof
(
myfloat_t
)
*
param
.
param_device
.
NumberPixels
*
param
.
param_device
.
NumberPixels
);
}
}
}
...
...
Write
Preview
Supports
Markdown
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