QuEraComputing / Bloqade.jl

Package for the quantum computation and quantum simulation based on the neutral-atom architecture.
https://queracomputing.github.io/Bloqade.jl/dev/
Other
181 stars 35 forks source link

Huge precompilation overhead #553

Open ChenZhao44 opened 1 year ago

ChenZhao44 commented 1 year ago

I am using Bloqade on a cluster. Previously, I used the separate library in Bloqade as a dependency, which included BloqadeExpr, BloqadeODE, BloqadeMIS, etc. It worked well, although the first time precompilation on a cluster took about 20 minutes.

However, I switched to using the full Bloqade as a dependency this week. The precompilation process has been ongoing for over 3 hours, but it is not providing any information on its progress as it is essentially a black box.

johnzl-777 commented 1 year ago

Hey @ChenZhao44 could you tell me what OS is on this cluster? I'd like to recreate your environment if possible and do some profiling.

I'm aware it takes some time on initial precompilation but never run into a case like this.

ChenZhao44 commented 1 year ago

Thanks @johnzl-777 . Here is the OS information

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
johnzl-777 commented 1 year ago

@ChenZhao44 could I get the version of Julia you're using as well? Much appreciated!

ChenZhao44 commented 1 year ago
julia> versioninfo()
Julia Version 1.8.5
Commit 17cfb8e65ea (2023-01-08 06:45 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × Intel(R) Xeon(R) Gold 6134 CPU @ 3.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake-avx512)
  Threads: 1 on 16 virtual cores