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

Unable to run LAMMPS with deepmd and voronoi package using trained model #3022

Closed
syue7979 opened this issue Dec 1, 2023 · 2 comments
Closed

Comments

@syue7979
Copy link

syue7979 commented Dec 1, 2023

Bug summary

We tried to run LAMMPS with deepmd+voronoi, it leads to the error:

ERROR: Unrecognized pair style 'deepmd' (src/force.cpp:275)
Last command: pair_style deepmd Ti5_small_i2_compressed_step01.pb
Cuda driver error 4 in call at file '/opt/lammps/lib/gpu/geryon/nvd_device.h' in line 429.
Cuda driver error 4 in call at file '/opt/lammps/lib/gpu/geryon/nvd_device.h' in line 430.

Has anyone ever encountered this error? Thanks in advance.

DeePMD-kit Version

deepmd−kit=2.2.7

TensorFlow Version

TensorFlow2.9.0

How did you download the software?

conda

Input Files, Running Commands, Error Log, etc.

Input file

#INITIALIZATION
clear
units            metal
dimension        3
boundary         p p p
atom_style       atomic
atom_modify      map array
variable srate   equal -0.001 # in s^-1

#ATOM DEFINITION
read_data 	 PureAlpha.lmp
pair_style deepmd Ti5_small_i2_compressed_step01.pb
pair_coeff * *      
neighbor 2.0 bin
neigh_modify delay 10 check yes
timestep	 0.001

#RELAXATION
reset_timestep   0
velocity all 	 create 100.0 12345 mom yes rot no dist gaussian
fix    1 all     npt temp 100.0 100.0 1.0 aniso 0.0 0.0 10.0  
thermo 100

run 10000
unfix 1
variable tmp equal "ly"
variable L0 equal ${tmp}
print "Initial Length, Ly = ${L0}"

## Strain
reset_timestep 0
fix 2 all nph x 0.0 0.0 10.0 z 0.0 0.0 10.0
variable srate1 equal "-v_srate / 1.0e12"
fix 3 all deform 1 y erate ${srate1} units box remap x

variable strain equal "(ly - v_L0)/v_L0"
variable vs equal "v_strain"
variable px equal "-pxx/10000"
variable py equal "-pyy/10000"
variable pz equal "-pzz/10000"
fix data1 all print 100 "${vs} ${px} ${py} ${pz} " file Strain-Stress.txt screen no

## Per-Stress
compute PerStress all centroid/stress/atom NULL
# Per-Volume
compute v all voronoi/atom
variable PerStressX atom c_PerStress[1]/c_v[1]/10000
variable PerStressY atom c_PerStress[2]/c_v[1]/10000
variable PerStressZ atom c_PerStress[3]/c_v[1]/10000
#c_v[1] is the volume of single atom, c_[2] is Number of faces of atomic polyhedron.

## PotEng
compute peratom all pe/atom
compute 1 all reduce sum c_peratom

dump 1 all custom 100 Alpha.lmc id xs ys zs c_v[1] v_PerStressX v_PerStressY v_PerStressZ c_peratom
dump_modify 1 sort id
thermo 100
thermo_style custom step pe c_1 temp v_px v_py v_pz ke press
run 10000

Running Commands

lmp -sf gpu -in AllPureAlpha.in

Error log

ERROR: Unrecognized pair style 'deepmd' (src/force.cpp:275)
Last command: pair_style deepmd Ti5_small_i2_compressed_step01.pb
Cuda driver error 4 in call at file '/opt/lammps/lib/gpu/geryon/nvd_device.h' in line 429.
Cuda driver error 4 in call at file '/opt/lammps/lib/gpu/geryon/nvd_device.h' in line 430.

Steps to Reproduce

PureAlpha.lmp.zip

Further Information, Files, and Links

No response

@syue7979 syue7979 added the bug label Dec 1, 2023
@njzjz
Copy link
Member

njzjz commented Dec 1, 2023

#1809

@njzjz
Copy link
Member

njzjz commented Feb 9, 2024

Close, as no more information is given to reproduce the issue.

@njzjz njzjz closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2024
@njzjz njzjz removed the bug label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants