Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FP16 support #277

Open
kuenishi opened this issue Aug 1, 2018 · 1 comment
Open

FP16 support #277

kuenishi opened this issue Aug 1, 2018 · 1 comment
Labels

Comments

@kuenishi
Copy link
Member

kuenishi commented Aug 1, 2018

At least we know with FP16 model Communicator's bcast_data does not work.

diff --git a/tests/chainermn_tests/communicator_tests/test_communicator.py b/tests/chainermn_tests/communicator_tests/test_communicator.py
index a0ff350..f03fa5d 100644
--- a/tests/chainermn_tests/communicator_tests/test_communicator.py
+++ b/tests/chainermn_tests/communicator_tests/test_communicator.py
@@ -242,6 +242,12 @@ def test_communicator_cpu(param):
     check_send_recv(param, False)
     check_collective_communication(param, False)
 
+    communicator = create_communicator(param, False)
+    communicator.mpi_comm.barrier()
+    x = np.random.rand(1, 3).astype(np.float16)
+    x = communicator.mpi_comm.Bcast(x)
+    print(x)
+
 
 @pytest.mark.parametrize('param', gpu_params)
 @chainer.testing.attr.gpu
  • non-cuda aware communicator does not support float16 model as MPI does not support float16.
@shu65
Copy link
Member

shu65 commented Sep 6, 2018

It is solved by #271 when using pure_nccl

@shu65 shu65 closed this as completed Sep 6, 2018
@shu65 shu65 reopened this Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants