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
954052f8
authored
Feb 17, 2023
by
Zoltan Karsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rank up
parent
694ebe1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
mpi.py
+2
-1
tetrarun.py
+4
-1
No files found.
mpi.py
View file @
954052f8
...
@@ -5,5 +5,5 @@ try:
...
@@ -5,5 +5,5 @@ try:
size
=
comm
.
Get_size
()
size
=
comm
.
Get_size
()
except
:
except
:
comm
=
None
comm
=
None
rank
=
None
rank
=
0
size
=
None
size
=
None
\ No newline at end of file
tetrarun.py
View file @
954052f8
...
@@ -43,6 +43,9 @@ def main(argv):
...
@@ -43,6 +43,9 @@ def main(argv):
elif
opt
in
(
"-b"
,
"--bin"
):
elif
opt
in
(
"-b"
,
"--bin"
):
binary
=
True
binary
=
True
if
outputfile
and
binary
and
mpi
and
rank
==
0
:
os
.
mkdir
(
outputfile
)
space
=
gen_angels_to_pick
(
n
)
space
=
gen_angels_to_pick
(
n
)
Cx
,
Cy
=
angles_alap
(
space
)
Cx
,
Cy
=
angles_alap
(
space
)
...
@@ -75,7 +78,7 @@ def main(argv):
...
@@ -75,7 +78,7 @@ def main(argv):
if
mpi
:
if
mpi
:
offset
=
f
"R{rank}-{size}"
offset
=
f
"R{rank}-{size}"
res
=
start_kernel
(
Cx
,
Cy
,
Dx
,
Dy
,
Dz
,
v
,
w
)
res
=
start_kernel
(
Cx
,
Cy
,
Dx
,
Dy
,
Dz
,
v
,
w
)
os
.
mkdir
(
outputfile
)
#
os.mkdir(outputfile)
cp
.
save
(
f
"{outputfile}/{offset}_Cx.npy"
,
Cx
)
cp
.
save
(
f
"{outputfile}/{offset}_Cx.npy"
,
Cx
)
cp
.
save
(
f
"{outputfile}/{offset}_Cy.npy"
,
Cy
)
cp
.
save
(
f
"{outputfile}/{offset}_Cy.npy"
,
Cy
)
cp
.
save
(
f
"{outputfile}/{offset}_Dx.npy"
,
Dx
)
cp
.
save
(
f
"{outputfile}/{offset}_Dx.npy"
,
Dx
)
...
...
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