From b7884a7894e88299ceed5ee24a33aec8c8301b04 Mon Sep 17 00:00:00 2001 From: dev-aditya Date: Wed, 21 Dec 2022 15:52:57 +0530 Subject: [PATCH 1/7] added installation instruction on linux for mpih --- requirements.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/requirements.txt b/requirements.txt index feb38fc..91ea52d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,7 @@ +""" run +sudo apt install make openmpi-bin openmpi-common openmpi-doc libopenmpi-dev mpich -y +""" + numpy scipy mpi4py From ed4f95d759126aab79c12e7d9737774ae5ecc1a5 Mon Sep 17 00:00:00 2001 From: dev-aditya Date: Wed, 21 Dec 2022 15:53:49 +0530 Subject: [PATCH 2/7] added .so files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 993c1e5..cf84dc2 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ __pycache__ *.pyc *.npz *.mtx +*.so junk build/* *egg-info From 4ef42d3a5bf166ee62890df8bf9918f195a691a0 Mon Sep 17 00:00:00 2001 From: dev-aditya Date: Wed, 21 Dec 2022 15:54:58 +0530 Subject: [PATCH 3/7] added wheel requirement --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 91ea52d..7e8401f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ """ run sudo apt install make openmpi-bin openmpi-common openmpi-doc libopenmpi-dev mpich -y """ - +wheel numpy scipy mpi4py From d8e0f8ac6057987882ee640ab66d86528cdfb93c Mon Sep 17 00:00:00 2001 From: dev-aditya Date: Wed, 21 Dec 2022 15:56:44 +0530 Subject: [PATCH 4/7] updated requirements --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 7e8401f..7aec65d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ """ run -sudo apt install make openmpi-bin openmpi-common openmpi-doc libopenmpi-dev mpich -y +sudo apt install make openmpi-bin gfortran openmpi-common openmpi-doc libopenmpi-dev mpich -y """ wheel numpy From 45dd347f4963c531f329daa5fb6f2a456c62cc8a Mon Sep 17 00:00:00 2001 From: dev-aditya Date: Wed, 21 Dec 2022 16:00:43 +0530 Subject: [PATCH 5/7] Updates readme --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index b209c41..db605ef 100644 --- a/README.rst +++ b/README.rst @@ -74,7 +74,7 @@ Enter the newly created 'QSW_MPI/dist' folder, which should contain the archive .. code-block:: - pip3 install qsw_mpi-0.0.1.tar.gz + pip3 install qsw_mpi-1.0.2.tar.gz Documentation ------------- From e15a36224ca74c9fbb4d4d279825433b30da2a1d Mon Sep 17 00:00:00 2001 From: dev-aditya Date: Wed, 21 Dec 2022 16:02:51 +0530 Subject: [PATCH 6/7] numpy doesn't supporty complex to define a imag num --- qsw_mpi/operators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qsw_mpi/operators.py b/qsw_mpi/operators.py index 56f1953..d6d9317 100644 --- a/qsw_mpi/operators.py +++ b/qsw_mpi/operators.py @@ -20,7 +20,7 @@ import qsw_mpi.foperators as foperators import copy -I = np.complex(0,1) +I = 1j def check_indices(G): """ From 5d1c8bba5d4be5418383d8d44e1ae9fdc2bd8783 Mon Sep 17 00:00:00 2001 From: dev-aditya Date: Wed, 21 Dec 2022 16:07:54 +0530 Subject: [PATCH 7/7] changed np.int to np.int64 --- qsw_mpi/MPI.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qsw_mpi/MPI.py b/qsw_mpi/MPI.py index 198857a..086121b 100644 --- a/qsw_mpi/MPI.py +++ b/qsw_mpi/MPI.py @@ -883,8 +883,8 @@ def __init__( self.H_loc_indices = H_loc.indices self.H_loc_data = H_loc.data else: - self.H_loc_indptr = np.zeros(H.shape[0] + 1, dtype = np.int) - self.H_loc_indices = np.zeros(1, dtype = np.int) + self.H_loc_indptr = np.zeros(H.shape[0] + 1, dtype = np.int64) + self.H_loc_indices = np.zeros(1, dtype = np.int64) self.H_loc_data = np.zeros(1, dtype = np.complex128) self.vsets = vsets @@ -1015,9 +1015,9 @@ def save_vsets(self, filename, vsetsname, action = 'a'): dset = f.create_dataset( vsetsname + '/' + str(i), (len(v),), - dtype = np.int) + dtype = np.int64) - dset[:] = np.array(v, dtype = np.int) + dset[:] = np.array(v, dtype = np.int64) f.close()