Added Landmark profiler

This commit is contained in:
Anthony Scemama 2023-06-30 12:22:26 +02:00
parent ca727440db
commit d53c0e6ea3
19 changed files with 56 additions and 27 deletions

View File

@ -68,6 +68,7 @@ with open(dunetest,'w') as f:
qcaml.gaussian_integrals qcaml.gaussian_integrals
qcaml.operators qcaml.operators
) )
(instrumentation (backend landmarks))
#+end_src #+end_src
** Modules without implementation ** Modules without implementation

View File

@ -64,6 +64,7 @@ with open(dunetest,'w') as f:
getopt getopt
unix unix
) )
(instrumentation (backend landmarks))
#+end_src #+end_src
** Modules without implementation ** Modules without implementation

View File

@ -13,11 +13,10 @@
unix unix
) )
(c_names (foreign_stubs
util (language c)
) (flags (:standard) -Ofast -mtune=native -fPIC)
(c_flags (:standard) (names util)
-Ofast -mtune=native -fPIC
) )
) )

View File

@ -1,4 +1,4 @@
(lang dune 1.10) (lang dune 2.7)
(name qcaml) (name qcaml)
(generate_opam_files true) (generate_opam_files true)
@ -34,6 +34,7 @@ in quantum chemistry.")
zarith zarith
alcotest alcotest
domainslib domainslib
(landmarks-ppx (and :dev (>= 1.4)))
) )
) )

View File

@ -3,9 +3,13 @@
ex_integrals ex_integrals
ex_hartree_fock ex_hartree_fock
ex_localization ex_localization
) )
(libraries (libraries
qcaml qcaml
unix unix
)) landmarks
)
(instrumentation (backend landmarks-threads))
)

View File

@ -55,6 +55,7 @@ with open(dunetest,'w') as f:
#+end_src #+end_src
** Dependencies ** Dependencies
(instrumentation (backend landmarks))
#+name: dependencies #+name: dependencies
#+begin_src elisp #+begin_src elisp
@ -62,6 +63,7 @@ with open(dunetest,'w') as f:
qcaml.common qcaml.common
qcaml.particles qcaml.particles
) )
(instrumentation (backend landmarks))
#+end_src #+end_src
** Modules without implementation ** Modules without implementation

View File

@ -9,6 +9,7 @@
qcaml.common qcaml.common
qcaml.particles qcaml.particles
) )
(instrumentation (backend landmarks))
) )

View File

@ -67,6 +67,7 @@ with open(dunetest,'w') as f:
qcaml.gaussian qcaml.gaussian
qcaml.operators qcaml.operators
) )
(instrumentation (backend landmarks))
#+end_src #+end_src
** Modules without implementation ** Modules without implementation

View File

@ -12,8 +12,9 @@
qcaml.operators qcaml.operators
unix unix
domainslib domainslib
) landmarks
)
(instrumentation (backend landmarks))
(modules_without_implementation matrix_on_basis) (modules_without_implementation matrix_on_basis)
) )

View File

@ -62,6 +62,7 @@ with open(dunetest,'w') as f:
qcaml.common qcaml.common
lacaml lacaml
) )
(instrumentation (backend landmarks))
#+end_src #+end_src
** Modules without implementation ** Modules without implementation

View File

@ -61,6 +61,7 @@ with open(dunetest,'w') as f:
(libraries (libraries
qcaml.simulation qcaml.simulation
) )
(instrumentation (backend landmarks))
#+end_src #+end_src
** Modules without implementation ** Modules without implementation

View File

@ -61,6 +61,7 @@ with open(dunetest,'w') as f:
(libraries (libraries
qcaml.common qcaml.common
) )
(instrumentation (backend landmarks))
#+end_src #+end_src
** Modules without implementation ** Modules without implementation

View File

@ -63,6 +63,7 @@ with open(dunetest,'w') as f:
trexio trexio
qcaml.common qcaml.common
) )
(instrumentation (backend landmarks))
#+end_src #+end_src
** Modules without implementation ** Modules without implementation

View File

@ -62,6 +62,7 @@ with open(dunetest,'w') as f:
qcaml.simulation qcaml.simulation
qcaml.mo qcaml.mo
) )
(instrumentation (backend landmarks))
#+end_src #+end_src
** Modules without implementation ** Modules without implementation

View File

@ -1,25 +1,18 @@
# This file is generated by dune, edit dune-project instead # This file is generated by dune, edit dune-project instead
opam-version: "2.0" opam-version: "2.0"
build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
["dune" "build" "-p" name "@doc"] {with-doc}
]
maintainer: ["Anthony Scemama <scemama@irsamc.ups-tlse.fr>"]
authors: ["Anthony Scemama <scemama@irsamc.ups-tlse.fr>"]
bug-reports: "https://gitlab.com/scemama/qcaml/issues"
homepage: "https://gitlab.com/scemama/qcaml"
doc: "https://gitlab.com/scemama/qcaml"
license: "LGPL-2.1+ with OCaml linking exception"
dev-repo: "git+https://gitlab.com/scemama/qcaml.git"
synopsis: "QCaml - Quantum chemistry with OCaml" synopsis: "QCaml - Quantum chemistry with OCaml"
description: """ description: """
QCaml provides a programming framewrok work wave function methods QCaml provides a programming framewrok work wave function methods
in quantum chemistry.""" in quantum chemistry."""
maintainer: ["Anthony Scemama <scemama@irsamc.ups-tlse.fr>"]
authors: ["Anthony Scemama <scemama@irsamc.ups-tlse.fr>"]
license: "LGPL-2.1+ with OCaml linking exception"
homepage: "https://gitlab.com/scemama/qcaml"
doc: "https://gitlab.com/scemama/qcaml"
bug-reports: "https://gitlab.com/scemama/qcaml/issues"
depends: [ depends: [
"ocaml" {>= "5.0"} "ocaml" {>= "5.0"}
"dune" {>= "1.10"} "dune" {>= "2.7" & >= "1.10"}
"camlp-streams" {>= "5.0"} "camlp-streams" {>= "5.0"}
"trexio" "trexio"
"lacaml" "lacaml"
@ -27,4 +20,21 @@ depends: [
"zarith" "zarith"
"alcotest" "alcotest"
"domainslib" "domainslib"
"landmarks-ppx" {dev & >= "1.4"}
"odoc" {with-doc}
] ]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://gitlab.com/scemama/qcaml.git"

View File

@ -42,6 +42,7 @@ with open(dune,'w') as f:
(libraries (libraries
{dependencies} {dependencies}
) )
(instrumentation (backend landmarks))
<<noimplementation>> <<noimplementation>>
<<c-files>> <<c-files>>
) )

View File

@ -66,6 +66,7 @@ with open(dunetest,'w') as f:
qcaml.operators qcaml.operators
qcaml.ao qcaml.ao
) )
(instrumentation (backend landmarks))
#+end_src #+end_src
** Modules without implementation ** Modules without implementation

View File

@ -12,8 +12,8 @@
test_perturbation test_perturbation
)) ))
(alias (rule
(name runtest) (alias runtest)
(deps run_tests.exe) (deps run_tests.exe)
(action (run %{deps} -q --color=always))) (action (run %{deps} -q --color=always)))

View File

@ -37,6 +37,7 @@ with open("lib/dune",'w') as f:
compiler-libs.toplevel compiler-libs.toplevel
qcaml qcaml
) )
(instrumentation (backend landmarks))
) )
""") """)
#+end_src #+end_src