-
Notifications
You must be signed in to change notification settings - Fork 25
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
Some beginner problems #248
Comments
It seems that |
Many thanks for your help. I was able to use the precompiled cuda11x versions in a clean environment on our HPC Cluster without greater problems. Many thanks And another question: Is there an example for calculating shieldings? I found test_shielding.py but i do not have an ide how to integrate this in a optimisation run. (for pyscf i found a simple example and i will inspect this in the next days more intense) |
In current version, you can run
|
Many thanks for your time to answer me. ` import gpu4pyscf #mf = dft.RKS(mol) mf = mol.RKS().to_gpu().run() ` i have uncommented the two lines alone and both at the same time. In all cases the error was the following: ValueError Traceback (most recent call last) File ~/miniconda3/lib/python3.12/site-packages/gpu4pyscf/properties/shielding.py:205, in eval_shielding(mf) File ~/miniconda3/lib/python3.12/site-packages/gpu4pyscf/properties/shielding.py:180, in get_h1ao(mf) File ~/miniconda3/lib/python3.12/site-packages/gpu4pyscf/properties/shielding.py:160, in get_vxc(mf, dm0) File ~/miniconda3/lib/python3.12/site-packages/gpu4pyscf/properties/shielding.py:100, in nr_rks(ni, mol, grids, xc_code, dms) File ~/miniconda3/lib/python3.12/site-packages/gpu4pyscf/lib/cutensor.py:151, in contract(pattern, a, b, alpha, beta, out) File ~/miniconda3/lib/python3.12/site-packages/gpu4pyscf/lib/cutensor.py:73, in contraction(pattern, a, b, alpha, beta, out, op_a, op_b, op_c, algo, jit_mode, compute_desc, ws_pref) ValueError: too many values to unpack (expected 2) This makes me unhappy. Can you help me again? Many thanks for your work and help. |
This is a bug when you use LDA functional for NMR shielding calculation. It has been fixed in #256 Just a reminder. These modules (Polarizability, IR, and NMR shielding) are still experimental. They probably are not as efficient as SCF module. |
Many thanks for your help and this reminder. I have editited shielding.py in the same way and now it works. Steffen |
After succesfully installing cuda, gpu4pscf und cutensor in my jupyter environment on my university hpc cluster i have problems running examples:
/home/sthomas/.conda/envs/myjupyter/lib/python3.10/site-packages/cupy/_environment.py:370: UserWarning: CuPy failed to preload library (/home/sthomas/.conda/envs/myjupyter/lib/python3.10/site-packages/cutensor/lib/libcutensor.so.2): OSError (libcublasLt.so.12: cannot open shared object file: No such file or directory)
warnings.warn(msg)
/home/sthomas/.conda/envs/myjupyter/lib/python3.10/site-packages/gpu4pyscf/lib/cutensor.py:138: UserWarning: using cupy as the tensor contraction engine.
warnings.warn(f'using {contract_engine} as the tensor contraction engine.')
NVRTCError Traceback (most recent call last)
File ~/.conda/envs/myjupyter/lib/python3.10/site-packages/cupy/cuda/compiler.py:692, in _NVRTCProgram.compile(self, options, log_stream)
691 nvrtc.addNameExpression(self.ptr, ker)
--> 692 nvrtc.compileProgram(self.ptr, options)
693 mapping = None
File cupy_backends/cuda/libs/nvrtc.pyx:125, in cupy_backends.cuda.libs.nvrtc.compileProgram()
File cupy_backends/cuda/libs/nvrtc.pyx:138, in cupy_backends.cuda.libs.nvrtc.compileProgram()
File cupy_backends/cuda/libs/nvrtc.pyx:53, in cupy_backends.cuda.libs.nvrtc.check_status()
NVRTCError: NVRTC_ERROR_COMPILATION (6)
During handling of the above exception, another exception occurred:
CompileException Traceback (most recent call last)
... (the full error listing is attached)
pip show cutensor-cu12 shows only one version of cutensor installed
alternatively i have started compiling gpu4pyscf.
After solving some little problems compiling stops:
[ 63%] Completed 'libxc'
[ 66%] Built target libxc
gmake: *** [Makefile:91: all] Error 2
Does anyone have some good ideas for me?
Thank you
errors.txt
The text was updated successfully, but these errors were encountered: