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
Compare revisions
fc5ba1035ac72a3c083ab1bf8a3cb60639e0c241 to 6ac9714c8450a78d9d0c07b4a1e014122b44efdd
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
mosaic/software/parallel-computing/openfpm/openfpm_devices
Select target project
No results found
6ac9714c8450a78d9d0c07b4a1e014122b44efdd
Select Git revision
Swap
Target
mosaic/software/parallel-computing/openfpm/openfpm_devices
Select target project
mosaic/software/parallel-computing/openfpm/openfpm_devices
argupta/openfpm_devices
2 results
fc5ba1035ac72a3c083ab1bf8a3cb60639e0c241
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
Odeint GPU Support under construction.
· 2f3598c0
Abhinav Singh
authored
2 years ago
2f3598c0
Adding additional function in ExtPreAlloc
· 42f6b016
Pietro Incardona
authored
1 year ago
42f6b016
Merge remote-tracking branch 'origin/FD_solver'
· 6ac9714c
Abhinav Singh
authored
1 year ago
6ac9714c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+4
-0
4 additions, 0 deletions
CMakeLists.txt
src/memory/ExtPreAlloc.hpp
+21
-0
21 additions, 0 deletions
src/memory/ExtPreAlloc.hpp
with
25 additions
and
0 deletions
CMakeLists.txt
View file @
6ac9714c
...
...
@@ -68,6 +68,10 @@ if (CUDA_ON_BACKEND STREQUAL "CUDA")
message
(
"CUDA is compatible 11.2/3/4/5"
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC -Xcudafe
"--display_error_number --diag_suppress=20014 --diag_suppress=20013 --diag_suppress=20012 --diag_suppress=20011 --diag_suppress=611 --diag_suppress=550 --diag_suppress=186 --diag_suppress=128"
--expt-extended-lambda
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC_TEXT
"-Xcudafe
\"
--display_error_number --diag_suppress=20014 --diag_suppress=20013 --diag_suppress=20012 --diag_suppress=20011 --diag_suppress=611 --diag_suppress=550 --diag_suppress=186 --diag_suppress=128
\"
--expt-extended-lambda"
)
elseif
(
CUDA_VERSION_MAJOR EQUAL 12
AND
(
CUDA_VERSION_MINOR EQUAL 0
))
message
(
"CUDA is compatible 12"
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC -Xcudafe
"--display_error_number --diag_suppress=20014 --diag_suppress=20013 --diag_suppress=20012 --diag_suppress=20011 --diag_suppress=611 --diag_suppress=550 --diag_suppress=186 --diag_suppress=128"
--expt-extended-lambda
)
set
(
WARNING_SUPPRESSION_AND_OPTION_NVCC_TEXT
"-Xcudafe
\"
--display_error_number --diag_suppress=20014 --diag_suppress=20013 --diag_suppress=20012 --diag_suppress=20011 --diag_suppress=611 --diag_suppress=550 --diag_suppress=186 --diag_suppress=128
\"
--expt-extended-lambda"
)
else
()
message
(
FATAL_ERROR
"CUDA is incompatible, version 9.2 10.1 10.2 11.1 11.2 11.3 11.4 is only supported"
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
src/memory/ExtPreAlloc.hpp
View file @
6ac9714c
...
...
@@ -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.