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
42f6b016
Commit
42f6b016
authored
1 year ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Adding additional function in ExtPreAlloc
parent
fc5ba103
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5363
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/memory/ExtPreAlloc.hpp
+21
-0
21 additions, 0 deletions
src/memory/ExtPreAlloc.hpp
with
21 additions
and
0 deletions
src/memory/ExtPreAlloc.hpp
+
21
−
0
View file @
42f6b016
...
...
@@ -65,6 +65,27 @@ public:
mem
.
resize
(
size
);
}
/*! \brief Set the internal memory if you did not do it in the constructor
*
* \param size number of bytes
* \param mem external memory, used if you want to keep the memory
*
*/
void
setMemory
(
size_t
size
,
Mem
&
mem
)
{
this
->
mem
=
&
mem
;
mem
.
resize
(
size
);
}
/*! \brief Get the internal memory if you did not do it in the constructor
*
* \return the internal memory
*
*/
Mem
*
getMemory
()
{
return
this
->
mem
;
}
/*! \brief Copy the memory from device to device
*
...
...
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