-
Notifications
You must be signed in to change notification settings - Fork 2
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
gw_iter rescf=True error #15
Comments
Looks new to me. I will try to have a look.
El sáb., 30 nov. 2019 9:55, mbarbry <[email protected]> escribió:
… Dear @masmansouri <https://github.com/masmansouri> and @kovalp
<https://github.com/kovalp>
Here is the error that I get when setting rescf=True in gw_iter. However,
it occurred at the moment only with this specific system. It did not give
issues for small molecules.
AttributeError: 'gw_iter' object has no attribute '_add_suffix'
Exception ignored in: <function VHFOpt.__del__ at 0x7f7a23aaba60>
Traceback (most recent call last):
File "/home/marc/programs/pyscf/pyscf/scf/_vhf.py", line 92, in __del__
libcvhf.CVHFdel_optimizer(ctypes.byref(self._this))
AttributeError: 'VHFOpt' object has no attribute '_this'
gw_iter_error.zip
<https://github.com/cfm-mpc/pyscf/files/3906925/gw_iter_error.zip>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15?email_source=notifications&email_token=ACAKSHHAHJXSXALAJLT24A3QWITANA5CNFSM4JTFVW62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H47S2XQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAKSHFH6AOZPPESU2AEMETQWITANANCNFSM4JTFVW6Q>
.
|
It is probably caused by some changes after the rebase with upstream. I get this error on nao2 branch. |
Can you help me with compilation?
I follow the instructions in nao/README.md
copied the cmake.user.inc
cd build
cmake ..
cmake finds FFTW3 /usr/lib/x86_64-linux-gnu
I compile, go to nao/test
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu
trying to run the first test.
'''
=============================================================================
ERRORS
=============================================================================
…________________________________________________________ ERROR collecting
pyscf/nao/test/test_0001_nao.py
________________________________________________________
/home/kovalp/envs/py37-pyside2/lib/python3.7/site-packages/py/_path/local.py:701:
in pyimport
__import__(modname)
../__init__.py:25: in <module>
from .m_ao_matelem import ao_matelem_c
../m_ao_matelem.py:23: in <module>
from pyscf.nao.m_gaunt import gaunt_c
../m_gaunt.py:17: in <module>
from pyscf.nao.m_thrj import thrj
../m_thrj.py:41: in <module>
from pyscf.nao.m_libnao import libnao
../m_libnao.py:16: in <module>
libnao = misc.load_library("libnao")
../../lib/misc.py:64: in load_library
return numpy.ctypeslib.load_library(libname, _loaderpath)
/home/kovalp/envs/py37-pyside2/lib/python3.7/site-packages/numpy/ctypeslib.py:152:
in load_library
return ctypes.cdll[libpath]
/usr/local/lib/python3.7/ctypes/__init__.py:431: in __getitem__
return getattr(self, name)
/usr/local/lib/python3.7/ctypes/__init__.py:426: in __getattr__
dll = self._dlltype(name)
/usr/local/lib/python3.7/ctypes/__init__.py:356: in __init__
self._handle = _dlopen(self._name, mode)
E OSError: /home/kovalp/programs/pyscf/pyscf/lib/libnao.so: undefined
symbol: sfftw_destroy_plan_
'''
On Sat, Nov 30, 2019 at 10:12 AM mbarbry ***@***.***> wrote:
It is probably caused by some changes after the rebase with upstream. I
get this error on nao2 branch.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15?email_source=notifications&email_token=ACAKSHFIRT7ATMLDITUF5WDQWIVBHA5CNFSM4JTFVW62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFP6HUY#issuecomment-559932371>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAKSHF7CACZPAPB5W7F6ETQWIVBHANCNFSM4JTFVW6Q>
.
|
To compile I usually use (ubuntu 18.04),
Then I export
|
Hi, Python 3.7.3 (default, Mar 27 2019, 22:11:17) In [1]: from pyscf.nao import gwOSError Traceback (most recent call last) ~/software/pyscf/pyscf/nao/init.py in ~/software/pyscf/pyscf/nao/m_ao_matelem.py in ~/software/pyscf/pyscf/nao/m_gaunt.py in ~/software/pyscf/pyscf/nao/m_thrj.py in ~/software/pyscf/pyscf/nao/m_libnao.py in ~/software/pyscf/pyscf/lib/misc.py in load_library(libname) ~/anaconda3/lib/python3.7/site-packages/numpy/ctypeslib.py in load_library(libname, loader_path) OSError: no file with expected extension Apparently, it cannot import most of nao modules. Do you know what the problem is? |
Looks like it does not find the library somehow. |
I downgraded the gcc to the older version, i.e. g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0. I also tried different mkl roots in the arch file, but all failed to import modules. |
Dear @masmansouri and @kovalp I managed to install and run pyscf-nao on a clean system (linux mint 19.2) following the instructions below Instruction to install pyscf-nao
Edit the cmake.arch.inc that it properly find mkl
Once pyscf is build, add the following variable to your bash
then you can go to nao test folder, and you should be able to run the tests |
Thank you. I was not able to do anything so far. I have made a bad
experience with anaconda. Therefore, I will try it differently. The best
would be to have a pip package.
El dom., 1 dic. 2019 12:12, mbarbry <[email protected]> escribió:
… Dear @masmansouri <https://github.com/masmansouri> and @kovalp
<https://github.com/kovalp>
I managed to install and run pyscf-nao on a clean system (linux mint 19.2)
following the instructions below
Instruction to install pyscf-nao
apt-get update
apt-get upgrade
apt-get -y install git wget curl htop gcc gfortran vim build-essential liblapack-dev libfftw3-dev make cmake zlib1g-dev
wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
bash Anaconda3-2019.10-Linux-x86_64.sh
bash
mkdir -p anaconda3/lib/mkl/lib
ln -s ~/anaconda3/lib/libmkl_* ~/anaconda3/lib/mkl/lib/
export CC=gcc && export FC=gfortran && export CXX=g++
git clone https://github.com/cfm-mpc/pyscf.git
cd pyscf
git fetch
git checkout nao2
cd pyscf/lib
cp cmake_user_inc_examples/cmake.user.inc-singularity.anaconda.gnu.mkl cmake.arch.inc
Edit the cmake.arch.inc that it properly find mkl
Use a full path for MKLROOT, and don't use ~ for your home folder path,
it could not compile in my case
export LD_LIBRARY_PATH=~/anaconda3/lib/mkl/lib:{LD_LIBRARY_PATH}
mkdir build && cd build
cmake .. && make
Once pyscf is build, add the following variable to your bash
export PYTHONPATH=~/pyscf:${PYTHONPATH}
export LD_LIBRARY_PATH=~/pyscf/pyscf/lib/deps/lib:${LD_LIBRARY_PATH}
then you can go to nao test folder, and you should be able to run the tests
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15?email_source=notifications&email_token=ACAKSHCJDISGFWZJMZ5ZWNLQWOL2JA5CNFSM4JTFVW62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFRFTAY#issuecomment-560093571>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAKSHC4RO7IEXEBAMJL3LTQWOL2JANCNFSM4JTFVW6Q>
.
|
Thanks @mbarbry One clarification, which version of gcc you used to compile? |
@mbarbry by following your recipe and gcc 7.4.0 installed and successfully passed tests. |
I received a lot of |
Hi @kovalp, I agree a pip package would be nice, but difficult to achieve with the number of dependencies. I think docker is easier for such cases with many dependencies. You should try the singularity packages I wrote. The recipe @masmansouri I will try to see if I get also the warnings for the tests. I did not see any in the tests I run thought. |
=============================================================
|
test_0087_o2_gw.py Branch nao: Ran 1 test in 15.622s Branch nao2: Ran 1 test in 76.021s A lot of warnings from Numba
|
Could I have nao2 without the performance degrading changes? |
I will have a look at what goes wrong. To deactivate it you can set |
There is a trouble with use_numba=False
Moreover, this part of the code does not need to be optimized. It is to produce a reference result, not necessarily the fastest one. |
@masmansouri which version do you normally use for production runs? |
Ok, in the example that I have this function was always used and is the bottleneck by far. The non-iterative code (not calling
The iterative code (calling
The first code needed 4.95e3 s, while the second 8.65e4 s. Any idear why the iterative version is way slower in this case? |
I agree with you @kovalp that it will be smarter to get the code to upstream before to start to play further. However, there are several issues that must be solved before to be able to merge with upstream.
|
@kovalp I still run my calculations using my repository |
on the weekend I tried |
I see. I need to explain how I started the merge from the upstream. I
cannot promise I can finish it.
…On Tue, Dec 3, 2019 at 11:12 AM Masoud Mansouri ***@***.***> wrote:
on the weekend I tried nao2 on my laptop and errors and numba warnings
are related to this branch.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15?email_source=notifications&email_token=ACAKSHC2TLPYNAPSK335SJ3QWYWG7A5CNFSM4JTFVW62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFY2ONI#issuecomment-561096501>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAKSHHWQCTTLYNG2HEA5HDQWYWG7ANCNFSM4JTFVW6Q>
.
|
Dear @masmansouri and @kovalp
Here is the error that I get when setting
rescf=True
in gw_iter. However, it occurred at the moment only with this specific system. It did not give issues for small molecules.gw_iter_error.zip
The text was updated successfully, but these errors were encountered: