Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_vcluster
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_vcluster
Commits
421922df
Commit
421922df
authored
Nov 20, 2015
by
Pietro Incardona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes for SE_CLASS2
parent
b07008bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
19 deletions
+28
-19
src/VCluster.cpp
src/VCluster.cpp
+0
-17
src/VCluster.hpp
src/VCluster.hpp
+28
-2
No files found.
src/VCluster.cpp
View file @
421922df
...
...
@@ -2,23 +2,6 @@
Vcluster
*
global_v_cluster
=
NULL
;
/*! \brief Initialize a global instance of Runtime Virtual Cluster Machine
*
* Initialize a global instance of Runtime Virtual Cluster Machine
*
*/
void
init_global_v_cluster
(
int
*
argc
,
char
***
argv
)
{
if
(
global_v_cluster
==
NULL
)
global_v_cluster
=
new
Vcluster
(
argc
,
argv
);
}
void
delete_global_v_cluster
()
{
delete
global_v_cluster
;
}
// Global MPI initialization
bool
global_mpi_init
=
false
;
...
...
src/VCluster.hpp
View file @
421922df
...
...
@@ -29,7 +29,9 @@
#define SEND_RECV_BASE 8192
#define GATHER_BASE 24576
// number of vcluster instances
extern
size_t
n_vcluster
;
// Global MPI initialization
extern
bool
global_mpi_init
;
///////////////////// Post functions /////////////
...
...
@@ -139,6 +141,9 @@ public:
// Finalize the MPI program
~
Vcluster
()
{
#ifdef SE_CLASS2
check_delete
(
this
);
#endif
n_vcluster
--
;
// if there are no other vcluster instances finalize
...
...
@@ -150,6 +155,10 @@ public:
Vcluster
(
int
*
argc
,
char
***
argv
)
:
NBX_cnt
(
0
)
{
#ifdef SE_CLASS2
check_new
(
this
,
8
,
VCLUSTER_EVENT
,
PRJ_VCLUSTER
);
#endif
n_vcluster
++
;
// Check if MPI is already initialized
...
...
@@ -913,10 +922,27 @@ public:
};
void
init_global_v_cluster
(
int
*
argc
,
char
***
argv
);
void
delete_global_v_cluster
();
// Function to initialize the global VCluster //
extern
Vcluster
*
global_v_cluster
;
/*! \brief Initialize a global instance of Runtime Virtual Cluster Machine
*
* Initialize a global instance of Runtime Virtual Cluster Machine
*
*/
static
void
init_global_v_cluster
(
int
*
argc
,
char
***
argv
)
{
if
(
global_v_cluster
==
NULL
)
global_v_cluster
=
new
Vcluster
(
argc
,
argv
);
}
static
void
delete_global_v_cluster
()
{
delete
global_v_cluster
;
}
#endif
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