Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Karsa Zoltán István
/
politopok
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
7e67e85a
authored
Feb 17, 2023
by
Zoltan Karsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup filename for mpi
parent
954052f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
tetrarun.py
+1
-1
utils.py
+4
-2
No files found.
tetrarun.py
View file @
7e67e85a
...
...
@@ -70,7 +70,7 @@ def main(argv):
mtx_cpu
=
np
.
zeros
(
res
.
size
,
dtype
=
np
.
int8
)
.
reshape
(
res
.
shape
)
res
.
get
(
out
=
mtx_cpu
)
#
writetofile(outputfile+'.full', Cx_cpu, Cy_cpu, Dx_cpu, Dy_cpu, Dz_cpu, mtx_cpu, mpi)
writetofile
(
outputfile
+
'.full'
,
Cx_cpu
,
Cy_cpu
,
Dx_cpu
,
Dy_cpu
,
Dz_cpu
,
mtx_cpu
,
mpi
)
#writetofile2(outputfile, Cx_cpu, Cy_cpu, Dx_cpu, Dy_cpu, Dz_cpu, mtx_cpu, mpi)
if
outputfile
and
binary
:
...
...
utils.py
View file @
7e67e85a
...
...
@@ -52,7 +52,8 @@ def writetofile(filename, Cx_cpu, Cy_cpu, Dx_cpu, Dy_cpu, Dz_cpu, mtx_cpu, mpi):
pos
=
size_C
*
size_D
if
mpi
:
filename
=
f
'R{rank}/{size}_'
+
filename
filename
=
filename
+
f
'R{rank}-{size}.out'
print
(
"Filename: "
,
filename
)
f
=
open
(
filename
,
"w"
)
for
i
in
range
(
0
,
pos
):
...
...
@@ -77,8 +78,9 @@ def writetofile2(filename, Cx_cpu, Cy_cpu, Dx_cpu, Dy_cpu, Dz_cpu, mtx_cpu, mpi)
pos
=
size_C
*
size_D
if
mpi
:
filename
=
f
'R{rank}/{size}_'
+
filename
filename
=
f
ilename
+
f
'R{rank}-{size}.out'
print
(
"Filename: "
,
filename
)
f
=
open
(
filename
,
"w"
)
for
i
in
range
(
0
,
pos
):
s
=
0
...
...
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