Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_devices
Commits
84e4f62c
Commit
84e4f62c
authored
Dec 05, 2020
by
incardon
Browse files
Merge branch 'master' of
ssh://git.mpi-cbg.de/openfpm/openfpm_devices
into HEAD
parents
059d94df
c62583ad
Pipeline
#2483
passed with stages
in 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
84e4f62c
...
...
@@ -3,8 +3,8 @@ project(openfpm_devices LANGUAGES C CXX)
set
(
BOOST_INCLUDE
${
Boost_INCLUDE_DIR
}
CACHE PATH
"Include directory for BOOST"
)
set
(
CMAKE_CXX_STANDARD 1
1
)
set
(
CMAKE_CUDA_STANDARD 1
1
)
set
(
CMAKE_CXX_STANDARD 1
4
)
set
(
CMAKE_CUDA_STANDARD 1
4
)
find_package
(
Boost 1.68.0 REQUIRED COMPONENTS unit_test_framework iostreams program_options
)
...
...
src/memory/CudaMemory.cuh
View file @
84e4f62c
...
...
@@ -43,6 +43,21 @@
extern
size_t
TotCudaMemoryAllocated
;
/*! \brief given an alignment and an alignment it return the smallest number numiple of the alignment
* such that the value returned is bigger ot equal that the number given
*
* alignment 8 number 2 it return 8
* alignment 8 number 9 it return 16
*
* \param al alignment
* \param number
*
*/
__device__
inline
size_t
align_number_device
(
size_t
al
,
size_t
number
)
{
return
number
+
((
number
%
al
)
!=
0
)
*
(
al
-
number
%
al
);
}
//! Is an array to report general error can happen in CUDA
static
__device__
unsigned
char
global_cuda_error_array
[
256
];
...
...
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