Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPC_Imaging
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Claudio Gheller
HPC_Imaging
Commits
f26545d8
Commit
f26545d8
authored
3 years ago
by
Luca Tornatore
Browse files
Options
Downloads
Patches
Plain Diff
added call to allocation of shared windows from init.c
parent
a1f0f5e7
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
init.c
+2
-0
2 additions, 0 deletions
init.c
numa.c
+1
-1
1 addition, 1 deletion
numa.c
proto.h
+1
-1
1 addition, 1 deletion
proto.h
with
4 additions
and
2 deletions
init.c
+
2
−
0
View file @
f26545d8
...
@@ -366,6 +366,8 @@ void allocate_memory() {
...
@@ -366,6 +366,8 @@ void allocate_memory() {
gridss_real
=
(
double
*
)
calloc
(
size_of_grid
/
2
,
sizeof
(
double
));
gridss_real
=
(
double
*
)
calloc
(
size_of_grid
/
2
,
sizeof
(
double
));
gridss_img
=
(
double
*
)
calloc
(
size_of_grid
/
2
,
sizeof
(
double
));
gridss_img
=
(
double
*
)
calloc
(
size_of_grid
/
2
,
sizeof
(
double
));
numa_allocate_shared_windows
(
Me
,
size_of_grid
*
sizeof
(
double
)
*
1
.
1
,
size_of_grid
*
sizeof
(
double
)
*
1
.
1
);
// Create destination slab
// Create destination slab
grid
=
(
double
*
)
calloc
(
size_of_grid
,
sizeof
(
double
));
grid
=
(
double
*
)
calloc
(
size_of_grid
,
sizeof
(
double
));
...
...
This diff is collapsed.
Click to expand it.
numa.c
+
1
−
1
View file @
f26545d8
...
@@ -75,7 +75,7 @@ int numa_init( int Rank, int Size, MPI_Comm *MYWORLD, map_t *Me )
...
@@ -75,7 +75,7 @@ int numa_init( int Rank, int Size, MPI_Comm *MYWORLD, map_t *Me )
}
}
int
numa_allocate_shared_windos
(
map_t
*
Me
,
MPI_Aint
size
,
MPI_Aint
host_size
)
int
numa_allocate_shared_windo
w
s
(
map_t
*
Me
,
MPI_Aint
size
,
MPI_Aint
host_size
)
{
{
int
SHMEMl
=
Me
->
SHMEMl
;
int
SHMEMl
=
Me
->
SHMEMl
;
...
...
This diff is collapsed.
Click to expand it.
proto.h
+
1
−
1
View file @
f26545d8
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
/* numa.c */
/* numa.c */
int
numa_init
(
int
,
int
,
MPI_Comm
*
,
map_t
*
);
int
numa_init
(
int
,
int
,
MPI_Comm
*
,
map_t
*
);
int
numa_allocate_shared_windos
(
map_t
*
,
MPI_Aint
,
MPI_Aint
);
int
numa_allocate_shared_windo
w
s
(
map_t
*
,
MPI_Aint
,
MPI_Aint
);
int
numa_shutdown
(
int
,
int
,
MPI_Comm
*
,
map_t
*
);
int
numa_shutdown
(
int
,
int
,
MPI_Comm
*
,
map_t
*
);
/* init.c */
/* init.c */
...
...
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