Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
PPC-BSC
Software
Deep Health Compss
Commits
50e572fa
Commit
50e572fa
authored
Jan 24, 2022
by
salbiach
Browse files
CPU to GPU
parent
a72e98cf
Changes
9
Hide whitespace changes
Inline
Side-by-side
docker/compss/runcompss.sh
View file @
50e572fa
...
...
@@ -6,4 +6,4 @@
#masterIP=(${Nodes[2]})
echo
"MasterIP is:"
$MY_POD_IP
cd
pyeddl
conda run
--no-capture-output
-n
pyeddl_pycompss_env runcompss
-d
--lang
=
python
--python_interpreter
=
python3
--project
=
/root/project.xml
--resources
=
/root/resources.xml
--master_name
=
$MY_POD_IP
eddl_train_batch_compss_mnist_async.py
\ No newline at end of file
conda run
--no-capture-output
-n
pyeddl_pycompss_env runcompss
--lang
=
python
--python_interpreter
=
python3
--project
=
/root/project.xml
--resources
=
/root/resources.xml
--master_name
=
$MY_POD_IP
eddl_train_batch_compss_mnist_sync.py
docker/pyeddl/eddl_compss_distributed.py
View file @
50e572fa
...
...
@@ -33,7 +33,7 @@ class Eddl_Compss_Distributed:
eddl
.
sgd
(
CVAR_SGD1
,
CVAR_SGD2
),
losses
,
metrics
,
eddl
.
CS_
C
PU
(
mem
=
"full_mem"
),
eddl
.
CS_
G
PU
(),
False
)
...
...
@@ -79,19 +79,19 @@ class Eddl_Compss_Distributed:
eddl
.
sgd
(
CVAR_SGD1
,
CVAR_SGD2
),
[
"soft_cross_entropy"
],
[
"categorical_accuracy"
],
eddl
.
CS_
C
PU
(
mem
=
"full_mem"
),
eddl
.
CS_
G
PU
(),
False
)
#print("Modelo built")
sys
.
stdout
.
flush
()
#
sys.stdout.flush()
# Set the parameters sent from master to the model
#model.setParameters(net_parametersToTensor(initial_parameters))
eddl
.
set_parameters
(
model
,
net_parametersToTensor
(
initial_parameters
))
#print("Parametros seteados")
sys
.
stdout
.
flush
()
#
sys.stdout.flush()
#print(eddl.summary(model))
...
...
@@ -164,7 +164,7 @@ class Eddl_Compss_Distributed:
eddl
.
sgd
(
CVAR_SGD1
,
CVAR_SGD2
),
[
"soft_cross_entropy"
],
[
"categorical_accuracy"
],
eddl
.
CS_
C
PU
(
mem
=
"full_mem"
),
eddl
.
CS_
G
PU
(),
False
)
...
...
@@ -225,7 +225,7 @@ class Eddl_Compss_Distributed:
eddl
.
sgd
(
CVAR_SGD1
,
CVAR_SGD2
),
[
"soft_cross_entropy"
],
[
"categorical_accuracy"
],
eddl
.
CS_
C
PU
(
mem
=
"full_mem"
),
eddl
.
CS_
G
PU
(),
False
)
...
...
@@ -274,7 +274,7 @@ class Eddl_Compss_Distributed:
eddl
.
sgd
(
CVAR_SGD1
,
CVAR_SGD2
),
[
"soft_cross_entropy"
],
[
"categorical_accuracy"
],
eddl
.
CS_
C
PU
(
mem
=
"full_mem"
),
eddl
.
CS_
G
PU
(),
False
)
...
...
docker/pyeddl/eddl_train_batch_compss_mnist_sync.py
View file @
50e572fa
...
...
@@ -45,7 +45,7 @@ def main(args):
eddl
.
sgd
(
CVAR_SGD1
,
CVAR_SGD2
),
[
"soft_cross_entropy"
],
[
"categorical_accuracy"
],
eddl
.
CS_
C
PU
(),
eddl
.
CS_
G
PU
(),
True
)
...
...
docker/pyeddl/examples/eddl_train_batch_compss_cifar10_lenet_async.py
View file @
50e572fa
...
...
@@ -43,7 +43,7 @@ def main(args):
eddl
.
sgd
(
CVAR_SGD1
,
CVAR_SGD2
),
[
"soft_cross_entropy"
],
[
"categorical_accuracy"
],
eddl
.
CS_
C
PU
(),
eddl
.
CS_
G
PU
(),
True
if
input_file
==
""
else
False
)
...
...
docker/pyeddl/examples/eddl_train_batch_compss_cifar10_lenet_sync.py
View file @
50e572fa
...
...
@@ -46,7 +46,7 @@ def main(args):
eddl
.
sgd
(
CVAR_SGD1
,
CVAR_SGD2
),
[
"soft_cross_entropy"
],
[
"categorical_accuracy"
],
eddl
.
CS_
C
PU
(),
eddl
.
CS_
G
PU
(),
True
if
input_file
==
""
else
False
)
...
...
docker/pyeddl/examples/eddl_train_batch_compss_cifar10_lenet_sync_test.py
View file @
50e572fa
...
...
@@ -42,7 +42,7 @@ def main(args):
eddl
.
sgd
(
CVAR_SGD1
,
CVAR_SGD2
),
[
"soft_cross_entropy"
],
[
"categorical_accuracy"
],
eddl
.
CS_
C
PU
(),
eddl
.
CS_
G
PU
(),
True
if
input_file
==
""
else
False
)
...
...
docker/pyeddl/examples/eddl_train_batch_compss_cifar10_vgg16_async.py
View file @
50e572fa
...
...
@@ -43,7 +43,7 @@ def main(args):
eddl
.
sgd
(
CVAR_SGD1
,
CVAR_SGD2
),
[
"soft_cross_entropy"
],
[
"categorical_accuracy"
],
eddl
.
CS_
C
PU
(
mem
=
"full_mem"
),
eddl
.
CS_
G
PU
(
mem
=
"full_mem"
),
True
)
...
...
docker/pyeddl/examples/eddl_train_batch_compss_cifar10_vgg16_seq.py
View file @
50e572fa
...
...
@@ -39,7 +39,7 @@ def main(args):
eddl
.
sgd
(
0.001
,
0.9
),
[
"soft_cross_entropy"
],
[
"categorical_accuracy"
],
eddl
.
CS_
C
PU
(),
eddl
.
CS_
G
PU
(),
True
)
...
...
docker/pyeddl/examples/eddl_train_batch_compss_cifar10_vgg16_sync.py
View file @
50e572fa
...
...
@@ -41,7 +41,7 @@ def main(args):
eddl
.
sgd
(
CVAR_SGD1
,
CVAR_SGD2
),
[
"soft_cross_entropy"
],
[
"categorical_accuracy"
],
eddl
.
CS_
C
PU
(),
eddl
.
CS_
G
PU
(),
True
)
...
...
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