Skip to content

Commit 337142f

Browse files
committed
Makefile for doc_nccl and minor fix in nccl tutorial
1 parent c6be355 commit 337142f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ doc:
5555
rm -rf source/tutorials && rm -rf build &&\
5656
cd .. && sphinx-build -b html docs/source docs/build
5757

58+
doc_nccl:
59+
cp tutorials_nccl/* tutorials/
60+
cd docs && rm -rf source/api/generated && rm -rf source/gallery &&\
61+
rm -rf source/tutorials && rm -rf source/tutorials && rm -rf build &&\
62+
cd .. && sphinx-build -b html docs/source docs/build
63+
rm tutorials/*_nccl.py
64+
5865
docupdate:
5966
cd docs && make html && cd ..
6067

tutorials_nccl/poststack_nccl.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
from pylops.avo.poststack import PoststackLinearModelling
1616

1717
import pylops_mpi
18-
import pylops_mpi.utils
19-
import pylops_mpi.utils._nccl
2018

2119
###############################################################################
2220
# NCCL communication can be easily initialized with
@@ -198,5 +196,3 @@
198196
axs[5][2].imshow(minv3d_reg[:, :, 220].T.get(), cmap='gist_rainbow', vmin=m.min(), vmax=m.max())
199197
axs[5][2].set_title('Regularized Inverted Model iter x-y')
200198
axs[5][2].axis('tight')
201-
202-
plt.savefig("./poststack_inv_nccl.png")

0 commit comments

Comments
 (0)