ASGD parallel train fails on CPU only binary build (2.0 b8 CPU only build)
ASGD had been tested on CPUs only cluster both in GPU 1b SGD binary (#1296) and CPU binary (this issue).
The environment is a cluster of windows2012 r2 hosts running HPC Pack 3, fully patched and up to date. To eleminate any specific MPI or HPC Pack issues, the same CNTK model had been successfully trained on the same CNTK binary build with dataParallelSGD=[] block (without 1 bit SGD)
parallelTrain = [
parallelizationMethod = "DataParallelSGD"
parallelizationStartEpoch = 2
distributedMBReading = true
syncPerfStats = 10
dataParallelSGD = [
#gradientBits = 1 #not supported in supplied CPU only build, custom build required
]
]
The only modification to the CNTK BrainScript model was replacing dataParallelSGD block with
dataParallelASGD = [
syncPerfStats = <xyz>
usePipeline = true
AdjustLearningRateAtBeginning = [
adjustCoefficient = 0.05
adjustNBMiniBatch = <xyz>
]
]
]
Testing on one host / multiple processes via mpiexec -n
Command line returns:
===============
[0] on <host>
\localcntk\cntk\CNTK.exe ended prematurely and may have crashed. exit code -1
[1-14] on <host>
\localcntk\cntk\CNTK.exe ended prematurely and may have crashed. exit code 1
And log files per rank:
===================
[INFO] [2017-01-18 15:45:34] multiverso MPI-Net is initialized under MPI_THREAD_SERIALIZED mode.
[INFO] [2017-01-18 15:45:34] All nodes registered. System contains 16 nodes. num_worker = 16, num_server = 16
[INFO] [2017-01-18 15:45:34] Create a async server
[INFO] [2017-01-18 15:45:35] Rank 0: Multiverso start successfully
CNTK: Caught Win32 exception 0xc0000005: Access violation.
Testing on the farm of hosts via HPC job (via task command line mpiexec -n
Command line returns:
===================
...
obe: Other MPI error, error stack:
MPI_Iprobe(src=MPI_ANY_SOURCE, tag=0, MPI_COMM_WORLD, flag=0x000000B68F7EF8D4, status=0x000000B68F7EF8D8) failed
An existing connection was forcibly closed by the remote host. (errno 10054)
[per host rank] fatal error
Fatal error in MPI_Iprobe: Other MPI error, error stack:
MPI_Iprobe(src=MPI_ANY_SOURCE, tag=0, MPI_COMM_WORLD, flag=0x000000A694D2FA94, status=0x000000A694D2FA98) failed
An existing connection was forcibly closed by the remote host. (errno 10054)
---- error analysis -----
[0] on <host1>
\localcntk\cntk\CNTK.exe ended prematurely and may have crashed. exit code -1
[1] on <host2>
\localcntk\cntk\CNTK.exe ended prematurely and may have crashed. exit code 1
---- error analysis -----
Log files per rank:
===================
[INFO] [2017-01-18 03:45:31] multiverso MPI-Net is initialized under MPI_THREAD_SERIALIZED mode.
[INFO] [2017-01-18 03:45:34] All nodes registered. System contains 16 nodes. num_worker = 16, num_server = 16
[INFO] [2017-01-18 03:45:34] Create a async server
[INFO] [2017-01-18 03:45:34] Rank 0: Multiverso start successfully
CNTK: Caught Win32 exception 0xc0000005: Access violation.
Testing on the farm of 9 hosts via HPC job (via task command line mpiexec ) results in:
command line returns:
===================
...
requestnodes [MPIWrapper]: using 9 out of 9 MPI nodes on multiple hosts (9 requested); we (5) are in (participating)
CNTK 2.0.beta8.0 (HEAD 66f4d8, Jan 16 2017 05:06:00) on <host5> at 2017/01/18 07:02:55
\localcntk\cntk\CNTK.exe configFile=\localcntk\margo\config\<modelName>.cntk makeMode=false command=Test_Train stderr=c:\localcntk\logs\<modelName>.log
requestnodes [MPIWrapper]: using 9 out of 9 MPI nodes on multiple hosts (9 requested); we (4) are in (participating)
CNTK 2.0.beta8.0 (HEAD 66f4d8, Jan 16 2017 05:06:00) on <host2> at 2017/01/18 07:02:55
\localcntk\cntk\CNTK.exe configFile=\localcntk\margo\config\<modelName>.cntk makeMode=false command=Test_Train stderr=c:\localcntk\logs\<modelName>.log
requestnodes [MPIWrapper]: using 9 out of 9 MPI nodes on multiple hosts (9 requested); we (1) are in (participating)
job aborted:
[ranks] message
[0] fatal error
[1] fatal error
Fatal error in MPI_Iprobe: Other MPI error, error stack:
MPI_Iprobe(src=MPI_ANY_SOURCE, tag=0, MPI_COMM_WORLD, flag=0x000000A08F14FAD4, status=0x000000A08F14FAD8) failed
An existing connection was forcibly closed by the remote host. (errno 10054)
[2] fatal error
Fatal error in MPI_Iprobe: Other MPI error, error stack:
MPI_Iprobe(src=MPI_ANY_SOURCE, tag=0, MPI_COMM_WORLD, flag=0x000000840F3EF734, status=0x000000840F3EF738) failed
An existing connection was forcibly closed by the remote host. (errno 10054)
[3] fatal error
Fatal error in MPI_Iprobe: Other MPI error, error stack:
MPI_Iprobe(src=MPI_ANY_SOURCE, tag=0, MPI_COMM_WORLD, flag=0x000000EA8F15FCB4, status=0x000000EA8F15FCB8) failed
An existing connection was forcibly closed by the remote host. (errno 10054)
[4] fatal error
Fatal error in MPI_Iprobe: Other MPI error, error stack:
MPI_Iprobe(src=MPI_ANY_SOURCE, tag=0, MPI_COMM_WORLD, flag=0x0000000C0EDCFB44, status=0x0000000C0EDCFB48) failed
An existing connection was forcibly closed by the remote host. (errno 10054)
[5] fatal error
Fatal error in MPI_Iprobe: Other MPI error, error stack:
MPI_Iprobe(src=MPI_ANY_SOURCE, tag=0, MPI_COMM_WORLD, flag=0x000000028F2AFD14, status=0x000000028F2AFD18) failed
An existing connection was forcibly closed by the remote host. (errno 10054)
[6] fatal error
Fatal error in MPI_Iprobe: Other MPI error, error stack:
MPI_Iprobe(src=MPI_ANY_SOURCE, tag=0, MPI_COMM_WORLD, flag=0x0000003E0EECF9A4, status=0x0000003E0EECF9A8) failed
An existing connection was forcibly closed by the remote host. (errno 10054)
[7] fatal error
Fatal error in MPI_Iprobe: Other MPI error, error stack:
MPI_Iprobe(src=MPI_ANY_SOURCE, tag=0, MPI_COMM_WORLD, flag=0x000000970F2DFB04, status=0x000000970F2DFB08) failed
An existing connection was forcibly closed by the remote host. (errno 10054)
[8] fatal error
Fatal error in MPI_Iprobe: Other MPI error, error stack:
MPI_Iprobe(src=MPI_ANY_SOURCE, tag=0, MPI_COMM_WORLD, flag=0x0000009694FCFA44, status=0x0000009694FCFA48) failed
An existing connection was forcibly closed by the remote host. (errno 10054)
---- error analysis -----
[0] on <host1>
mpi has detected a fatal error and aborted \localcntk\cntk\CNTK.exe
[1] on <host2>
mpi has detected a fatal error and aborted \localcntk\cntk\CNTK.exe
[2] on <host3>
mpi has detected a fatal error and aborted \localcntk\cntk\CNTK.exe
[3] on <host4>
mpi has detected a fatal error and aborted \localcntk\cntk\CNTK.exe
[4] on <host5>
mpi has detected a fatal error and aborted \localcntk\cntk\CNTK.exe
[5] on <host6>
mpi has detected a fatal error and aborted \localcntk\cntk\CNTK.exe
[6] on <host7>
mpi has detected a fatal error and aborted \localcntk\cntk\CNTK.exe
[7] on <host8>
mpi has detected a fatal error and aborted \localcntk\cntk\CNTK.exe
[8] on <host9>
mpi has detected a fatal error and aborted \localcntk\cntk\CNTK.exe
---- error analysis -----
log files per rank end in:
===================
No PreCompute nodes found, or all already computed. Skipping pre-computation step.
[INFO] [2017-01-18 07:35:26] multiverso MPI-Net is initialized under MPI_THREAD_SERIALIZED mode.
[INFO] [2017-01-18 07:35:26] All nodes registered. System contains 9 nodes. num_worker = 9, num_server = 9
[INFO] [2017-01-18 07:35:26] Create a async server
[INFO] [2017-01-18 07:35:26] Rank 0: Multiverso start successfully
CNTK: Caught Win32 exception 0xc0000005: Access violation.
I am forwarding this to the multiverso team to look at
I'll look into this, will updates later
@chivee We tested beta 7 on 3 host x1 GPU standalone mpi/smpd netdirect/rdma environment. Did not beat SGD 1bit - maybe due to the small model size / topology. Will test the current beta using same setup once the farm is free. For further tests we launched same training on a larger number of CPU only hosts and raised these issues.
While we on this subject - what takes it so long to go from one epoch to the next in ASGD training? Can this overhead be reduced? We saw very low CPU and no GPU or I/O on hosts in between epochs .
@avader906 , sorry for missing the message. the asgd setting didn't reduce the communication size between nodes, while 1bit does. since that, an computational free task will suffer from the communications. I'm not quite sure what are the settings, could you please share your settings?
No response for a while and I'm closing this issue. Please reopen a new issue if needed. Thanks!