Skip to content

Commit 1bd9756

Browse files
authored
Merge pull request #40 from Zhaoli2042/main
Better GPU total energy and print GPU energy drift
2 parents e4d94db + ff65337 commit 1bd9756

22 files changed

+1879
-650
lines changed

Examples/Bae-Mixture/output.txt

+197-54
Large diffs are not rendered by default.

Examples/CO2-MFI/output.txt

+109-96
Large diffs are not rendered by default.

Examples/Methane-TMMC/output.txt

+126-24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/home/z/Desktop/gRASPA_fork/src_clean/nvc_main.xChecking if all inputs are defined
2-
True path of exe is /home/z/Desktop/gRASPA_fork/src_clean/
1+
/home/z/Desktop/gRASPA_versions/080424-code/gRASPA_fork/src_clean/nvc_main.xChecking if all inputs are defined
2+
True path of exe is /home/z/Desktop/gRASPA_versions/080424-code/gRASPA_fork/src_clean/
33
There are 1 simulations
44
running only one simulation
55
------------------PARSING FORCE FIELD MIXING RULES----------------
@@ -403,6 +403,7 @@ Parsing [1] Component
403403
Component 0 starts at line number 37
404404
-------------- READING AdsorbateComponent 0 (methane) --------------
405405
Adsorbate Component is rigid
406+
CH4_sp3, type: 13, Acharge = 0.00000
406407
Bonds not implemented. Break
407408
Atom [0]: Type [13], Name: CH4_sp3, Mass: 16.000000, position: 0.00000 0.00000 0.00000
408409
Adsorbate Type[13], Name: CH4_sp3, #: 1
@@ -447,24 +448,39 @@ Box Temperature: 95.00000
447448
Host-Host VDW: 0.00000; Real: 0.00000
448449
Host-Guest VDW: 0.00000; Real: 0.00000
449450
Guest-Guest VDW: 0.00000; Real: 0.00000
450-
Ewald Summation (total energy) on the CPU took 0.00000 secs
451-
Ewald Summation (total energy) on the GPU took 0.00000 secs
451+
********** PRINTING COMPONENT ENERGIES**********
452+
Compoent [0-0], VDW: 0.00000, Real: 0.00000
453+
Compoent [0-1], VDW: 0.00000, Real: 0.00000
454+
Compoent [1-1], VDW: 0.00000, Real: 0.00000
455+
THERE IS MORE THAN 1 FRAMEWORK COMPONENTS
456+
Framework Comp Zero Atoms: 207, Other Comp Atoms: 0
457+
NFrameworkZero_ExtraFramework interactions: 0, NExtraFrameworkAtoms * (NExtraFrameworkAtoms - 1) / 2: 0
458+
VDW + Real on the GPU took 0.00001 secs
459+
Total GPU Energy:
460+
HHVDW: 0.00000, HHReal: 0.00000, HGVDW: 0.00000, HGReal: 0.00000, GGVDW: 0.00000, GGReal: 0.00000, HHEwaldE: 0.00000, HGEwaldE: 0.00000, GGEwaldE: 0.00000, TailE: 0.00000, DNN_E: 0.00000
461+
Stored HGVDW: 0.00000, Stored HGReal: 0.00000, Stored HGEwaldE: 0.00000
452462
====================== DONE CALCULATING INITIAL STAGE ENERGY ======================
453463
Component 1, Need to create 0 full molecule
454464
======================== CALCULATING CREATE_MOLECULE STAGE ENERGY ========================
455465
****** Calculating VDW + Real Energy (CPU) ******
456466
Host-Host VDW: 0.00000; Real: 0.00000
457467
Host-Guest VDW: 0.00000; Real: 0.00000
458468
Guest-Guest VDW: 0.00000; Real: 0.00000
459-
Ewald Summation (total energy) on the CPU took 0.00000 secs
460-
Ewald Summation (total energy) on the GPU took 0.00000 secs
469+
********** PRINTING COMPONENT ENERGIES**********
470+
Compoent [0-0], VDW: 0.00000, Real: 0.00000
471+
Compoent [0-1], VDW: 0.00000, Real: 0.00000
472+
Compoent [1-1], VDW: 0.00000, Real: 0.00000
473+
THERE IS MORE THAN 1 FRAMEWORK COMPONENTS
474+
Framework Comp Zero Atoms: 207, Other Comp Atoms: 0
475+
NFrameworkZero_ExtraFramework interactions: 0, NExtraFrameworkAtoms * (NExtraFrameworkAtoms - 1) / 2: 0
476+
VDW + Real on the GPU took 0.00000 secs
477+
Total GPU Energy:
478+
HHVDW: 0.00000, HHReal: 0.00000, HGVDW: 0.00000, HGReal: 0.00000, GGVDW: 0.00000, GGReal: 0.00000, HHEwaldE: 0.00000, HGEwaldE: 0.00000, GGEwaldE: 0.00000, TailE: 0.00000, DNN_E: 0.00000
479+
Stored HGVDW: 0.00000, Stored HGReal: 0.00000, Stored HGEwaldE: 0.00000
461480
====================== DONE CALCULATING CREATE_MOLECULE STAGE ENERGY ======================
462481
Running Simulation Boxes in SERIAL, currently [0] box; pres: 0.00041, temp: 95.00000
463482
Number of Frameworks: 1
464483
INITIALIZATION Cycle: 0, 0 Adsorbate Molecules, Total Energy: 0.00000 || Component 0 [667.cif], 1 Molecules || Component 1 [methane], 0 Molecules ||
465-
Cycle [4], Printing DeltaE
466-
HHVDW: 0.00000, HHReal: 0.00000, HGVDW: 0.00000, HGReal: 0.00000, GGVDW: 0.00000, GGReal: 0.00000, HHEwaldE: 0.00000, HGEwaldE: 0.00000, GGEwaldE: 0.00000, TailE: 0.00000, DNN_E: 0.00000
467-
Stored HGVDW: 0.00000, Stored HGReal: 0.00000, Stored HGEwaldE: 0.00000
468484
======================== MOVE STATISTICS FOR COMPONENT [1] (methane) ========================
469485
=====================SWAP MOVES=====================
470486
Insertion Performed: 1678
@@ -480,9 +496,6 @@ Reinsertion Accepted: 389
480496
Running Simulation Boxes in SERIAL, currently [0] box; pres: 0.00041, temp: 95.00000
481497
Number of Frameworks: 1
482498
EQUILIBRATION Cycle: 0, 59 Adsorbate Molecules, Total Energy: -48094.15797 || Component 0 [667.cif], 1 Molecules || Component 1 [methane], 59 Molecules ||
483-
Cycle [4], Printing DeltaE
484-
HHVDW: 0.00000, HHReal: 0.00000, HGVDW: 0.00000, HGReal: 0.00000, GGVDW: 0.00000, GGReal: 0.00000, HHEwaldE: 0.00000, HGEwaldE: 0.00000, GGEwaldE: 0.00000, TailE: 0.00000, DNN_E: 0.00000
485-
Stored HGVDW: 0.00000, Stored HGReal: 0.00000, Stored HGEwaldE: 0.00000
486499
EQUILIBRATION Cycle: 10000, 62 Adsorbate Molecules, Total Energy: -52121.68757 || Component 0 [667.cif], 1 Molecules || Component 1 [methane], 62 Molecules ||
487500
EQUILIBRATION Cycle: 20000, 56 Adsorbate Molecules, Total Energy: -45419.04810 || Component 0 [667.cif], 1 Molecules || Component 1 [methane], 56 Molecules ||
488501
EQUILIBRATION Cycle: 30000, 58 Adsorbate Molecules, Total Energy: -48166.04905 || Component 0 [667.cif], 1 Molecules || Component 1 [methane], 58 Molecules ||
@@ -507,9 +520,6 @@ Printing: Component: 0 [ 667.cif ], NumMol: 1, Molsize: 207
507520
Printing: Component: 1 [ methane ], NumMol: 60, Molsize: 1
508521
Component 0, Molsize: 207
509522
Component 1, Molsize: 1
510-
Cycle [4], Printing DeltaE
511-
HHVDW: 0.00000, HHReal: 0.00000, HGVDW: -87.54050, HGReal: 0.00000, GGVDW: -42.40380, GGReal: 0.00000, HHEwaldE: 0.00000, HGEwaldE: 0.00000, GGEwaldE: 0.00000, TailE: 0.00000, DNN_E: 0.00000
512-
Stored HGVDW: 0.00000, Stored HGReal: 0.00000, Stored HGEwaldE: 0.00000
513523
PRODUCTION Cycle: 10000, 62 Adsorbate Molecules, Total Energy: -48220.01615 || Component 0 [667.cif], 1 Molecules || Component 1 [methane], 62 Molecules ||
514524
Printing: Component: 0 [ 667.cif ], NumMol: 1, Molsize: 207
515525
Printing: Component: 1 [ methane ], NumMol: 62, Molsize: 1
@@ -632,11 +642,73 @@ BLOCK [4], Blocksize: 10000, Average: 12.41149, ErrorBar: 9.85773
632642
Overall: Average: 34.71939, ErrorBar: 28.98501
633643
----------------------------------------------------------
634644
==============================================================
645+
=====================Rosenbluth Summary=====================
646+
There are 5 blocks
647+
=====BLOCK 0=====
648+
Widom Performed: 3369.0
649+
Framework Density: 116.33074 [kg/m^3]
650+
(Total) Averaged Rosenbluth Weight: 795.7580576518
651+
(Total) Averaged Excess Mu: -634.2347235877
652+
(Total) Averaged Henry Coefficient: 0.0086602168
653+
(Total) Converted to Fugacity: 344.8401406044 [Pascal], Temp: 95.00000 [K]
654+
Framework Density: 116.33074 [kg/m^3]
655+
(Insertion) Averaged Rosenbluth Weight: 795.7580576518
656+
(Insertion) Averaged Excess Mu: -634.2347235877
657+
(Insertion) Converted to Fugacity: 344.8401406044 [Pascal], Temp: 95.00000 [K]
658+
=====BLOCK 1=====
659+
Widom Performed: 3286.0
660+
Framework Density: 116.33074 [kg/m^3]
661+
(Total) Averaged Rosenbluth Weight: 655.3110108386
662+
(Total) Averaged Excess Mu: -615.7957984343
663+
(Total) Averaged Henry Coefficient: 0.0071317348
664+
(Total) Converted to Fugacity: 418.7466957660 [Pascal], Temp: 95.00000 [K]
665+
Framework Density: 116.33074 [kg/m^3]
666+
(Insertion) Averaged Rosenbluth Weight: 655.3110108386
667+
(Insertion) Averaged Excess Mu: -615.7957984343
668+
(Insertion) Converted to Fugacity: 418.7466957660 [Pascal], Temp: 95.00000 [K]
669+
=====BLOCK 2=====
670+
Widom Performed: 3349.0
671+
Framework Density: 116.33074 [kg/m^3]
672+
(Total) Averaged Rosenbluth Weight: 685.9186917949
673+
(Total) Averaged Excess Mu: -620.1304285532
674+
(Total) Averaged Henry Coefficient: 0.0074648375
675+
(Total) Converted to Fugacity: 400.0610039794 [Pascal], Temp: 95.00000 [K]
676+
Framework Density: 116.33074 [kg/m^3]
677+
(Insertion) Averaged Rosenbluth Weight: 685.9186917949
678+
(Insertion) Averaged Excess Mu: -620.1304285532
679+
(Insertion) Converted to Fugacity: 400.0610039794 [Pascal], Temp: 95.00000 [K]
680+
=====BLOCK 3=====
681+
Widom Performed: 3289.0
682+
Framework Density: 116.33074 [kg/m^3]
683+
(Total) Averaged Rosenbluth Weight: 448.0360138531
684+
(Total) Averaged Excess Mu: -579.6903295768
685+
(Total) Averaged Henry Coefficient: 0.0048759657
686+
(Total) Converted to Fugacity: 612.4715692558 [Pascal], Temp: 95.00000 [K]
687+
Framework Density: 116.33074 [kg/m^3]
688+
(Insertion) Averaged Rosenbluth Weight: 448.0360138531
689+
(Insertion) Averaged Excess Mu: -579.6903295768
690+
(Insertion) Converted to Fugacity: 612.4715692558 [Pascal], Temp: 95.00000 [K]
691+
=====BLOCK 4=====
692+
Widom Performed: 3325.0
693+
Framework Density: 116.33074 [kg/m^3]
694+
(Total) Averaged Rosenbluth Weight: 556.6735704443
695+
(Total) Averaged Excess Mu: -600.3056460581
696+
(Total) Averaged Henry Coefficient: 0.0060582658
697+
(Total) Converted to Fugacity: 492.9447616288 [Pascal], Temp: 95.00000 [K]
698+
Framework Density: 116.33074 [kg/m^3]
699+
(Insertion) Averaged Rosenbluth Weight: 556.6735704443
700+
(Insertion) Averaged Excess Mu: -600.3056460581
701+
(Insertion) Converted to Fugacity: 492.9447616288 [Pascal], Temp: 95.00000 [K]
702+
=========================AVERAGE========================
703+
Averaged Rosenbluth Weight: 628.3394689165 +/- 236.1646065721
704+
Averaged Excess Chemical Potential: -610.0313852420 +/- 37.2686504599
705+
Averaged Henry Coefficient [mol/kg/Pa]: 0.006838204138 +/- 0.002570174038
706+
Averaged Fugacity: 453.8128342469 +/- 184.8195730328
635707
Printing: Component: 0 [ 667.cif ], NumMol: 1, Molsize: 207
636708
Printing: Component: 1 [ methane ], NumMol: 6, Molsize: 1
637709
Component 0, Molsize: 207
638710
Component 1, Molsize: 1
639-
Work took 3.235230 seconds
711+
Work took 3.160120 seconds
640712
======================================
641713
CHECKING FINAL ENERGY FOR SYSTEM [0]
642714
======================================
@@ -645,8 +717,23 @@ CHECKING FINAL ENERGY FOR SYSTEM [0]
645717
Host-Host VDW: 0.00000; Real: 0.00000
646718
Host-Guest VDW: -4894.72762; Real: 0.00000
647719
Guest-Guest VDW: -51.91054; Real: 0.00000
648-
Ewald Summation (total energy) on the CPU took 0.00000 secs
649-
Ewald Summation (total energy) on the GPU took 0.00000 secs
720+
********** PRINTING COMPONENT ENERGIES**********
721+
Compoent [0-0], VDW: 0.00000, Real: 0.00000
722+
Compoent [0-1], VDW: -4894.72762, Real: 0.00000
723+
Compoent [1-1], VDW: -51.91054, Real: 0.00000
724+
THERE IS MORE THAN 1 FRAMEWORK COMPONENTS
725+
Framework Comp Zero Atoms: 207, Other Comp Atoms: 0
726+
NFrameworkZero_ExtraFramework interactions: 0, NExtraFrameworkAtoms * (NExtraFrameworkAtoms - 1) / 2: 0
727+
Atoms: 207 6
728+
Interactions: 0 1242 15
729+
Nblock 2, blocks: 0 1 1, threads needed: 0 13 1, Nthread: 128
730+
GPU VDW REAL ENERGY:
731+
HHVDW: 0.00000, HHReal: 0.00000, HGVDW: -4894.72762, HGReal: 0.00000, GGVDW: -51.91054, GGReal: 0.00000, HHEwaldE: 0.00000, HGEwaldE: 0.00000, GGEwaldE: 0.00000, TailE: 0.00000, DNN_E: 0.00000
732+
Stored HGVDW: 0.00000, Stored HGReal: 0.00000, Stored HGEwaldE: 0.00000
733+
VDW + Real on the GPU took 0.00018 secs
734+
Total GPU Energy:
735+
HHVDW: 0.00000, HHReal: 0.00000, HGVDW: -4894.72762, HGReal: 0.00000, GGVDW: -51.91054, GGReal: 0.00000, HHEwaldE: 0.00000, HGEwaldE: 0.00000, GGEwaldE: 0.00000, TailE: 0.00000, DNN_E: 0.00000
736+
Stored HGVDW: 0.00000, Stored HGReal: 0.00000, Stored HGEwaldE: 0.00000
650737
====================== DONE CALCULATING FINAL STAGE ENERGY ======================
651738
======================================
652739
======================== ENERGY SUMMARY (Simulation 0) =========================
@@ -740,7 +827,7 @@ DNN Energy: 0.00000 (0.00000 [K])
740827
Tail Correction Energy: 0.00000 (0.00000 [K])
741828
Total Energy: -4946.63815 (-5949.44183 [K])
742829
========================================================================
743-
*** CHECK DELTA_E (FINAL - CREATE MOLECULE) ***
830+
*** CHECK DELTA_E (RUNNING FINAL - CREATE MOLECULE) ***
744831
========================================================================
745832
VDW [Host-Host]: 0.00000 (0.00000 [K])
746833
VDW [Host-Guest]: -4894.72762 (-5887.00777 [K])
@@ -755,7 +842,22 @@ DNN Energy: 0.00000 (0.00000 [K])
755842
Tail Correction Energy: 0.00000 (0.00000 [K])
756843
Total Energy: -4946.63815 (-5949.44183 [K])
757844
========================================================================
758-
*** ENERGY DRIFT ***
845+
*** ENERGY DRIFT (CPU FINAL - RUNNING FINAL) ***
846+
========================================================================
847+
VDW [Host-Host]: 0.00000 (0.00000 [K])
848+
VDW [Host-Guest]: -0.00000 (-0.00000 [K])
849+
VDW [Guest-Guest]: 0.00000 (0.00000 [K])
850+
Real Coulomb [Host-Host]: 0.00000 (0.00000 [K])
851+
Real Coulomb [Host-Guest]: 0.00000 (0.00000 [K])
852+
Real Coulomb [Guest-Guest]: 0.00000 (0.00000 [K])
853+
Ewald [Host-Host]: 0.00000 (0.00000 [K])
854+
Ewald [Host-Guest]: 0.00000 (0.00000 [K])
855+
Ewald [Guest-Guest]: 0.00000 (0.00000 [K])
856+
DNN Energy: 0.00000 (0.00000 [K])
857+
Tail Correction Energy: 0.00000 (0.00000 [K])
858+
Total Energy: -0.00000 (-0.00000 [K])
859+
========================================================================
860+
*** GPU DRIFT (GPU FINAL - CPU FINAL) ***
759861
========================================================================
760862
VDW [Host-Host]: 0.00000 (0.00000 [K])
761863
VDW [Host-Guest]: -0.00000 (-0.00000 [K])
@@ -833,8 +935,8 @@ PseudoAtom Type: Hw[10], #: 0
833935
PseudoAtom Type: Ow[11], #: 0
834936
PseudoAtom Type: CH3_sp3[12], #: 0
835937
PseudoAtom Type: CH4_sp3[13], #: 6
836-
Total Program Size: 5577 MB
837-
Resident Set Size: 115 MB
838-
Shared Pages: 94 MB
938+
Total Program Size: 5578 MB
939+
Resident Set Size: 116 MB
940+
Shared Pages: 95 MB
839941
Text (code): 0 MB
840-
Data + Stack: 67 MB
942+
Data + Stack: 68 MB

0 commit comments

Comments
 (0)