기본 정보
- 저자
- DOI
- 10.48550/arxiv.1407.5026
- 저널
- arXiv (Cornell University)
- 발행년도
- 2022
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.1407.5026
- 토픽
- Thermal properties of materials
- OpenAlex ID
- W6929354185
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
We develop a parallel rejection algorithm to tackle the problem of low acceptance in Monte Carlo methods, and apply it to the simulation of the hopping conduction in Coulomb glasses using Graphics Processing Units, for which we also parallelize the update of local energies. In two dimensions, our parallel code achieves speedups of up to two orders of magnitude in computing time over an equivalent serial code. We find numerical evidence of a scaling relation for the relaxation of the conductivity at different temperatures.
본문 30,388자
본문 펼치기
## Parallel kinetic Monte Carlo simulation of Coulomb glasses
### E.E. Ferrero ∗,†, A.B. Kolton ∗ and M. Palassini ∗∗,‡
∗ _CONICET, Centro Atómico Bariloche, 8400 Bariloche, Argentina_
- _Current address: LIPhy, Université Joseph Fourier, UMR 5588, F-38402 Saint Martin d’Hères, France_
∗∗ _Departament de Física Fonamental, Universitat de Barcelona, 08028 Barcelona, Spain_
- _The Abdus Salam International Centre for Theoretical Physics (ICTP), 34014 Trieste, Italy_
Abstract. We develop a parallel rejection algorithm to tackle the problem of low acceptance in Monte Carlo methods, and
apply it to the simulation of the hopping conduction in Coulomb glasses using Graphics Processing Units, for which we
also parallelize the update of local energies. In two dimensions, our parallel code achieves speedups of up to two orders of
magnitude in computing time over an equivalent serial code. We find numerical evidence of a scaling relation for the relaxation
of the conductivity at different temperatures.
Keywords: Monte Carlo algorithms, Hopping transport
PACS: 02.70.Tt, 71.23.Cq, 72.20.Ee
INTRODUCTION
A frequent limitation of Markov-chain Monte Carlo (MC) methods is low acceptance. In _equilibrium_ MC this problem
can sometimes be circumvented with a clever choice of the MC moves, which can be chosen with a certain freedom as
long as the Markov chain converges to the probability distribution of interest. Such freedom is not allowed in _kinetic_
Monte Carlo (KMC), in which the MC moves are dictated by the physical dynamics to be simulated.
In this work we present a general “parallel rejection” (PR) algorithm to address the problem of low acceptance,
which is especially suitable for implementation on Graphics Processing Units (GPUs), easily available and inexpensive
platforms for massively parallel computing. We apply PR to the KMC simulation of the hopping conduction in
Coulomb glasses, which is notoriously plagued by very low acceptance in the variable-range hopping (VRH) regime.
For this particular application, PR can be seen as a parallelization of the “mixed” algorithm of Refs. [1, 2], which
can be further accelerated in GPUs by efficiently parallelizing the _N_ local energy updates that, due to the long-range
interaction, are required after each elementary MC move in a system with _N_ sites.
We implemented a GPU code using CUDA [3], exploiting both sources of parallelism. In the next section we
illustrate the PR idea in general, and later we apply it to the hopping dynamics of the Coulomb glass. We then present
our results for the lattice model in two dimensions, notably on the short-time relaxation of the conductivity. Finally,
we compare the performance of the GPU code with a serial implementation of the mixed algorithm.
PARALLEL REJECTION ALGORITHM
Let us consider a generic Markov chain specified by a proposal matrix _Q_ αβ and an acceptance matrix _P_ αβ between
the configurations α, β of a certain system. The standard (serial) _rejection algorithm_ to simulate such a chain consists
in iterating the following two steps: 1. Propose a move α → β, where α is the current configuration and β is chosen
with probability _Q_ αβ ; 2. Accept the move with probability _P_ αβ and, if this is accepted, update the configuration to β .
The PR algorithm (see Ref.[4] for a similar idea) runs simultaneously on an ordered array of _M_ parallel “threads”
(for example, GPU threads), iterating the following steps ( _k_ = 1,..., _M_ is the thread label):
1. Propose, independently from the other threads, a move α → β _k_, where α is the current configuration (common
to all threads) and β _k_ is chosen with probability _Q_ αβ _k_ .
2. Accept the move α → β _k_ with probability _P_ αβ _k_, independently from the other threads (without updating the
configuration).
3. If at least one thread has accepted a move, update the configuration to β _q_, where _q_ is the lowest label among the
threads that have accepted a move.
SERIAL: 1 trial per iteration
L=64
L=128
L=256
L=512
L=1024
L=2048
τ (b)
10-3 10-2
_T_
_Number of serial iterations_
Rejected move
m = (p−1) M + q
1010
108
106
104
_t_
(a)
1
1
First accepted move performed
Subsequent acceepted move discarded
p _Number of parallel iterations_ m
FIGURE 1. (a) Illustrative comparison of the “Parallel Rejection” scheme with the mathematically equivalent serial approach. In
both, proposed moves (squares) are drawn by sampling from the proposal probability. While in the serial approach (top) one move
is proposed each iteration, in the parallel approach (bottom) a block of _M_ independent moves is proposed. For a given acceptance
rate, the first accepted move (red square) is found after _m_ serial iterations, and after _p_ parallel iterations. Other accepted moves
(blue square) that may appear in last parallel iteration are discarded. In this example _M_ = 12, _p_ = 2, _q_ = 5. (b) Physical time (in
units of τ 0) that we can simulate with the parallel KMC method in a 10 days run, as a function of temperature, for different systems
sizes. The dashed line is the characteristic time τ = _b_ <sup>−1</sup> _T_ <sup>−1</sup> exp[( _T_ 0/ _T_ ) <sup>1/2</sup> ], with _b_ <sup>−1</sup> = 2.7, _T_ 0 = 6.2 according to Fig.3.
While the two algorithms above are mathematically equivalent (see Fig.1(a) for an illustration), the parallel version
is increasingly faster as the acceptance rate, _A_ = ⟨ _P_ αβ ⟩, decreases. If _m_ and _p_ are the number of iterations of the
serial and parallel algorithms, respectively, until a move is accepted, we can estimate the speedup of PR as ⟨ _m_ ⟩/⟨ _p_ ⟩
(neglecting parallelization overheads and differences in the computing time for one iteration in the parallel and serial
implementations). Since ⟨ _m_ ⟩ = _A_ <sup>−1</sup> and ⟨ _p_ ⟩ = 1/[1 − (1 − _A_ ) <sup>_M_</sup> ], for _A_ ≪ 1 we have ⟨ _p_ ⟩∼ ( _MA_ ) <sup>−1</sup> ≪⟨ _m_ ⟩, and thus
⟨ _m_ ⟩/⟨ _p_ ⟩∼ min( _A_ <sup>−1</sup>, _M_ ). In principle, the optimal choice for _M_ is thus _M_ <sup>∗</sup> = min( _A_ <sup>−1</sup>, _C_ ), where _C_ is the maximum
number of threads that can run simultaneously. In practice, in a GPU implementation it is possible (and recommended)
to use _M_ larger than _C_, in which case the virtual parallel execution is efficiently handled by the hardware scheduling
system. The computing time can then remain sublinear in _M_ even for _M_ as large as 10 <sup>4</sup> . Thus, for many applications
the speedup of the PR algorithm on GPUs is essentially dictated by _A_ <sup>−1</sup>, and can be very significant.
A popular alternative to the rejection algorithm in low-acceptance situations is the rejection-free BKL or Gillespie
algorithm [5]. This requires a computing time proportional to the average number _z_ = ⟨ ∑β θ ( _Q_ αβ _P_ αβ )⟩ of configurations that are accessible from a given configuration α . Thus, BKL is faster than serial rejection when _z_ ≪ _A_ <sup>−1</sup>, but
slower than PR when ( _MA_ ) <sup>−1</sup> ≪ _z_ . Below we apply PR to the rejection part of the mixed algorithm of Ref. [1], which
combines the BKL and rejection algorithms for the simulation of phonon-assisted hopping conduction.
HOPPING CONDUCTION IN THE COULOMB GLASS
We consider the standard Coulomb glass model [6] described by the dimensionless Hamiltonian
### H = ∑φ ini + 1
2
### − E ∑ i
<sup>1</sup>
### 2 ∑
_i_ ≠ _j_
( _ni_ - ν )( _n j_ - ν )
_rij_
_nixi_, (1)
̸
where _ni_ = 0, 1 ( _i_ = 1,..., _N_ ), with ∑ _i ni_ = ν _N_, are the electron occupation numbers of _N_ sites in a _D_ -dimensional
volume, ν is the filling factor, _rij_ is the Euclidean distance between sites _i_ and _j_ in units of the average spacing
_a_ = (Volume/ _N_ ) <sup>1/</sup> <sup>_D_</sup>, and _E_ is an external electric field in the (negative) _x_ direction. The random potentials φ _i_
are sampled from the uniform distribution [− _W_, _W_ ]. We consider only phonon-assisted single-electron hops, with
transition rates that can be approximated by
Γ _ij_ = τ 0 <sup>−1</sup> <sup>θ</sup> <sup>_ije_</sup> <sup>−2</sup> <sup>_rij_</sup> <sup>/</sup> <sup>ξ</sup> <sup>min[1,</sup> <sup>_e_</sup> <sup>−</sup> <sup>∆</sup> <sup>_Hij_</sup> <sup>/</sup> <sup>_kBT_</sup> <sup>]</sup> (2)
where _T_ is the temperature, _kB_ is the Boltzmann constant, θ _ij_ = δ _ni_,1 δ _n_ _j_,0, ξ is the electron localization length, and
τ 0 is a microscopic time of order 10 <sup>−12</sup> s, which will be our unit of time. The energy change after a hop _i_ → _j_ is
0.5
0.4
0.3
_g_ (ε _,T_ )
0.2
0.1
(a) 10 _<u>-0.6</u>_ ε/ _T_ _0.6_ ε/ _T_
_T_
0.2 5
0.17
0.13
0.1
0.09 0
0.07
0.05 -20 -10 0 10 ~~2~~ 0
0.03 ε/ _T_
0.5
0.4
0.3
_g_ ( ε, _T_ )
0.2
0.1
0
<u>-2</u> <u>0</u> <u>2</u>
ε
(b)
_t_
0
8.87921
125.304
2156.12
10089.3
14336.1
20701
41996
84697.7
238270
955637
5
0
0
<u>-2</u> <u>0</u> <u>2</u> <u>4</u>
ε
FIGURE 2. Pseudo-equilibrium (a) and time-dependent (b) single-particle density of states for _L_ = 512, as function of temperature and time respectively. Data in (b) corresponds to _T_ = 0.04.
∆ _Hij_ = ε _j_ - ε _i_ - 1/ _rij_ - _E_ ∆ _xij_, where ε _i_ = φ _i_ + ∑ _j_ ( _n j_ - ν )/ _rij_ are the single-particle energies and ∆ _xij_ = _x_ _j_ - _xi_ is the
length of the hop along the field. The instantaneous conductivity is given by [1, 2]
1
σ ( _t_ ) =
_NE_
_dP_ ( _t_ )
(3)
_dt_
where _P_ = ∑ _i nixi_ is the electric dipole moment, provided _E_ is small enough to ensure a linear response.
In the naive serial KMC algorithm for simulating the dynamics in Eq.(2) a hop _i_ → _j_ is proposed by choosing _i_ and
αβ
_j_ uniformly at random among the _N_ sites, and is accepted with probability τ 0 Γ _ij_ (thus, _Q_ αβ = _N_ <sup>−1</sup> ( _N_ - 1) <sup>−1</sup> ∑ _ij_ Θ <sup>_ij_</sup>
αβ
_j_ uniformly at random among the _N_ sites, and is accepted with probability τ 0 Γ _ij_ (thus, _Q_ αβ = _N_ <sup>−1</sup> ( _N_ - 1) <sup>−1</sup> ∑ _ij_ Θ <sup>_ij_</sup>
and _P_ αβ = ∑ _ij_ τ 0 Θαβ <sup>_ij_</sup> <sup>Γ</sup> <sup>_ij_</sup> <sup>,</sup> <sup>where</sup> <sup>Θ</sup> αβ <sup>_ij_</sup> <sup>= 1</sup> <sup>if</sup> <sup>α</sup> <sup>and</sup> <sup>β</sup> <sup>differ</sup> <sup>by</sup> <sup>the</sup> <sup>hop</sup> <sup>_i_</sup> <sup>→</sup> <sup>_j_</sup> <sup>and</sup> <sup>Θ</sup> αβ <sup>_ij_</sup> <sup>= 0</sup> <sup>otherwise).</sup> <sup>The</sup> <sup>time</sup> <sup>is</sup>
αβ <sup>_ij_</sup> <sup>Γ</sup> <sup>_ij_</sup> <sup>,</sup> <sup>where</sup> <sup>Θ</sup> <sup>_ij_</sup>
αβ <sup>_ij_</sup> <sup>= 1</sup> <sup>if</sup> <sup>α</sup> <sup>and</sup> <sup>β</sup> <sup>differ</sup> <sup>by</sup> <sup>the</sup> <sup>hop</sup> <sup>_i_</sup> <sup>→</sup> <sup>_j_</sup> <sup>and</sup> <sup>Θ</sup> <sup>_ij_</sup>
and _P_ αβ = ∑ _ij_ τ 0 Θαβ <sup>_ij_</sup> <sup>Γ</sup> <sup>_ij_</sup> <sup>,</sup> <sup>where</sup> <sup>Θ</sup> αβ <sup>_ij_</sup> <sup>= 1</sup> <sup>if</sup> <sup>α</sup> <sup>and</sup> <sup>β</sup> <sup>differ</sup> <sup>by</sup> <sup>the</sup> <sup>hop</sup> <sup>_i_</sup> <sup>→</sup> <sup>_j_</sup> <sup>and</sup> <sup>Θ</sup> αβ <sup>_ij_</sup> <sup>= 0</sup> <sup>otherwise).</sup> <sup>The</sup> <sup>time</sup> <sup>is</sup>
incremented by ∆ _t_ = 1 after _N_ ( _N_ - 1) proposals.
The above algorithm suffers from extremely low acceptance due to both the tunneling factor Γ <sup>_T_</sup> _ij_ <sup>=</sup> <sup>_e_</sup> <sup>−2</sup> <sup>_rij_</sup> <sup>/</sup> <sup>ξ</sup> <sup>and</sup>
incremented by ∆ _t_ = 1 after _N_ ( _N_ - 1) proposals.
The above algorithm suffers from extremely low acceptance due to both the tunneling factor Γ <sup>_T_</sup> _ij_ <sup>=</sup> <sup>_e_</sup> <sup>−2</sup> <sup>_rij_</sup> <sup>/</sup> <sup>ξ</sup> <sup>and</sup>
the thermal activation factor Γ <sup>_A_</sup> _ij_ <sup>=</sup> <sup>θ</sup> <sup>_ij_</sup> <sup>min[1,</sup> <sup>exp(−</sup> <sup>∆</sup> <sup>_Hij_</sup> <sup>/</sup> <sup>_T_</sup> <sup>)].</sup> <sup>The</sup> <sup>mixed</sup> <sup>algorithm</sup> <sup>[2]</sup> <sup>exploits</sup> <sup>the</sup> <sup>factorization</sup>
The above algorithm suffers from extremely low acceptance due to both the tunneling factor Γ <sup>_T_</sup> _ij_
τ 0 Γ _ij_ = Γ <sup>_T_</sup> _ij_
<sup>_T_</sup> _ij_ <sup>Γ</sup> <sup>_A_</sup> _ij_
̸
<sup>_A_</sup> _ij_ <sup>and</sup> <sup>the</sup> <sup>fact</sup> <sup>that</sup> <sup>Γ</sup> <sup>_T_</sup> _ij_
̸
̸ _ij_ <sup>_T_</sup> <sup>, and can be sampled without rejection (for example, using the “tower sampling” method</sup> <sup>[7]).</sup>
<sup>_A_</sup> _ij_ <sup>=</sup> <sup>θ</sup> <sup>_ij_</sup> <sup>min[1,</sup> <sup>exp(−</sup> <sup>∆</sup> <sup>_Hij_</sup> <sup>/</sup> <sup>_T_</sup> <sup>)].</sup> <sup>The</sup> <sup>mixed</sup> <sup>algorithm</sup> <sup>[2]</sup> <sup>exploits</sup> <sup>the</sup> <sup>factorization</sup>
<sup>_T_</sup> _ij_ <sup>is</sup> <sup>configuration independent. The</sup> <sup>proposal matrix</sup> <sup>is</sup> <sup>now</sup> <sup>_Q_</sup> αβ <sup>=</sup> <sup>∑</sup> _ij_ <sup>Θ</sup> <sup>_ij_</sup>
αβ <sup>_ij_</sup> <sup>Γ</sup> _ij_ <sup>_T_</sup>
τ 0 Γ _ij_ = Γ <sup>_T_</sup> _ij_ <sup>Γ</sup> <sup>_A_</sup> _ij_ <sup>and</sup> <sup>the</sup> <sup>fact</sup> <sup>that</sup> <sup>Γ</sup> <sup>_T_</sup> _ij_ <sup>is</sup> <sup>configuration independent. The</sup> <sup>proposal matrix</sup> <sup>is</sup> <sup>now</sup> <sup>_Q_</sup> αβ <sup>=</sup> <sup>∑</sup> _ij_ <sup>Θ</sup> αβ <sup>_ij_</sup> <sup>Γ</sup> _ij_ <sup>_T_</sup> <sup>/</sup> <sup>Γ</sup> <sup>,</sup>
where Γ = ∑ _i_ ∑ _j_ ̸= _i_ Γ _ij_ <sup>_T_</sup> <sup>, and can be sampled without rejection (for example, using the “tower sampling” method</sup> <sup>[7]).</sup>
̸
The acceptance matrix is _P_ αβ = ∑ _ij_ Θ <sup>_ij_</sup>
αβ <sup>_ij_</sup> <sup>Γ</sup> _ij_ <sup>_A_</sup>
̸
The acceptance matrix is _P_ αβ = ∑ _ij_ Θαβ <sup>_ij_</sup> <sup>Γ</sup> _ij_ <sup>_A_</sup> <sup>.</sup> <sup>After</sup> <sup>each</sup> <sup>proposal,</sup> <sup>_t_</sup> <sup>is</sup> <sup>incremented</sup> <sup>by</sup> <sup>a</sup> <sup>random</sup> <sup>∆</sup> <sup>_t_</sup> <sup>sampled</sup> <sup>from</sup>
_p_ ( ∆ _t_ ) = Γ exp(− Γ∆ _t_ ) [5]. Since the rejection now only comes from Γ _ij_ <sup>_A_</sup> <sup>, the</sup> <sup>acceptance rate is increased by a factor</sup>
_p_ ( ∆ _t_ ) = Γ exp(− Γ∆ _t_ ) [5]. Since the rejection now only comes from Γ _ij_ <sup>_A_</sup> <sup>, the</sup> <sup>acceptance rate is increased by a factor</sup>
∼ _N_ ξ <sup>−</sup> <sup>_D_</sup> . Nevertheless, deep in the VRH regime, where _T_ is only a few percent of the Coulomb energy, the acceptance
is still quite low (for the _D_ = 2 lattice model we find _A_ ≈ 0.03 _T_ for _T_ ≤ 0.2). It becomes then advantageous to use
the PR strategy. This results in the following mixed PR algorithm running on _M_ threads ( _k_ = 1,..., _M_ ), which is
mathematically equivalent to the serial mixed algorithm and, therefore, to the naive KMC:
1. Propose (indendently from the other threads) a hop _ik_ → _jk_ by choosing ( _ik_, _jk_ ) with probability Γ _i_ <sup>_T_</sup> _k jk_ <sup>/</sup> <sup>Γ</sup> <sup>by</sup>
rejection-free sampling.
2. Accept the hop with probability Γ <sup>_A_</sup> _ik jk_ <sup>(even if accepted, do not execute the hop).</sup>
3. If at least one thread has accepted a hop then:
a. Execute the hop _iq_ → _jq_, where _q_ is the lowest label among the threads that have accepted a hop. Any
accepted hop in the other threads is discarded.
accepted hop in the other threads is discarded.
b. Update the dipole moment as ∆ _P_ = ∆ _xiq jq_ and the local energies by adding 1/ _riq jq_ to ε _iq_, −1/ _riq jq_ to ε _jq_, and
1/ _rl jq_ - 1/ _rliq_ to ε _l_ for _l_ ̸ = _iq_, _l_ ̸ = _jq_ .
c. Increment the time by a random ∆ _t_ sampled from a Gaussian distribution of mean _m_ / Γ and standard
̸ ̸
deviation <sup>√</sup> _m_ / Γ, where _m_ = _pM_ + _q_ and _p_ is the number of iterations since the previous executed hop.
We implemented the above algorithm in CUDA [3] for the case in which the sites belong to a lattice with toroidal
boundary conditions. In this case Γ <sup>_T_</sup> _ij_ <sup>only depends on</sup> <sup>_rij_</sup> <sup>(thus</sup> <sup>Γ</sup> <sup>=</sup> <sup>_N_</sup> <sup>∑</sup> _i_ <sup>Γ</sup> _ij_ <sup>_T_</sup> <sup>) hence the “tower” is much smaller than</sup>
<sup>_T_</sup> _ij_ <sup>only depends on</sup> <sup>_rij_</sup> <sup>(thus</sup> <sup>Γ</sup> <sup>=</sup> <sup>_N_</sup> <sup>∑</sup> _i_ <sup>Γ</sup> _ij_ <sup>_T_</sup>
_ij_ <sup>_T_</sup> <sup>) hence the “tower” is much smaller than</sup>
102
101
100
(a) 102 _T_
102
(b)
~ _t_
10-1
10-2
10-3
10-4
10-5
2.7 exp[ -(6.2/T)1/2 ]
1.74 exp[ -(9.33/T)1/2 ] / T
100
10-2
101 102 103 104 105 106 107
_t_
0.8
0.5
0.4
0.3
0.2
0.17
0.13
0.1
0.09
0.07
0.05
0.04
0.03
10-4 10-3 10-2 10-1 100 101 102 103
10-6
<u>1</u> <u>2</u> <u>3</u> <u>4</u> <u>5</u> <u>6</u>
1/ _T_ 1/2
_2_
_t_ σ0 _T2_
FIGURE 3. (a) Inset: time evolution of the polarization starting from a random initial configuration at different temperatures for
_L_ = 512. The steady-state conductivity σ 0 = lim _t_ → ∞ ( _dP_ / _dt_ )/( _NE_ ) is reached after a transient time τ ≈ 1/( _T_ <sup>2</sup> σ 0). Main figure:
same data rescaled as a function of _t_ / τ . In this figure we use a deterministic time increment ∆ _t_ = _m_ / Γ . Using a stochastic increment
does not produce any appreciable difference. (b) Fit to the Efros-Shklovskii law σ 0 = _bT_ <sup>−</sup> <sup>λ</sup> exp[−( _T_ 0/ _T_ ) <sup>1/2</sup> ] for λ = 1, 2.
for the model with random sites [2]. At each iteration we need 3 _M_ random numbers (to choose _ik_, _rik jk_, and to accept
the hops), which requires a random number generator (RNG) able to generate a large number of uncorrelated random
sequences in parallel. The code uses functions of our own and the open-source libraries Thrust [8] (for generic parallel
transformations) and Philox from Random123 [9] (a GPU-suitable RNG). The code also exploits the “embarrassing
parallelism” of the local energy update: we distribute the update on _N_ parallel threads, where the _k_ -th thread updates
the local energy on lattice site _k_ .
RESULTS FOR THE LATTICE MODEL IN TWO DIMENSIONS
We simulated two-dimensional square lattices with _N_ = _L_ <sup>2</sup> sites, for _L_ = 64, 128, 256, 512, 1024, 2048,setting ν = 1/2,
ξ = 1, _W_ = 1, and _E_ = _T_ /10. We use toroidal boundary conditions in both directions, and adopt the minimal image
convention for _rij_ and ∆ _xij_ . We do not allow hops larger than _L_ /2 (in our simulations, the typical hopping length is
much shorter than _L_ /2 anyway). To recover cgs units from the numerical data below, the dimensionless quantities
{ _H_, _T_, _t_, _E_, _P_, σ } must be multiplied respectively by { _e_ <sup>2</sup> /( κ _a_ ), _e_ <sup>2</sup> /( κ _akB_ ), τ 0, _e_ /( κ _a_ <sup>2</sup> ), _ea_, _a_ <sup>3−</sup> <sup>_D_</sup> κ / τ 0}, where _e_ is the
electron charge and κ is the dielectric constant of the lattice.
To validate the code, we start by analyzing the single-particle density of states, defined as the normalized histogram
_g_ ( ε, _T_ ) = ∑ _k_ δ∆ε ( ε - ε _k_ ), for a given binning size ∆ε . In Fig.2(a) we show _g_ ( ε, _T_ ) in the steady state for different
temperatures and _L_ = 512. As shown in the inset, in the Coulomb gap region the data can be rescaled as _g_ ( ε, _T_ ) =
_T f_ ( ε / _T_ ), and are well fitted by _g_ ( ε, _T_ ) = _c_ | ε | for small | ε |, with _c_ = 0.62. The prefactor is consistent with the
theoretical estimate [6] _c_ = 2/ π but is larger than the estimate _c_ = 0.40 obtained with the parallel tempering MC
algorithm [10], which allows many-electron rearrangements and thus can reach lower energies then the single-particle
KMC, even if the latter seems to have reached a steady state, as shown in Fig.2(b)).
Next, we analyze the conductivity. The inset of Fig.3(a) shows how, starting from a random configuration, after a
transient time the polarization grows linearly in time, and a stationary conductivity can be estimated as σ 0 = _P_ /( _NEt_ )
for large _t_ . Further relaxation of the conductivity at larger times cannot be discarded, but should be neglibible for time
scales a few times larger than the transient time. Our data for σ 0( _T_ ), shown in Fig.3(b), agree with Ref.[1] up to a
factor two. The data are well fitted by the Efros-Shklovskii law σ 0 = _bT_ <sup>−</sup> <sup>λ</sup> exp[−( _T_ 0/ _T_ ) <sup>1/2</sup> ] assuming λ = 1, which
gives _T_ 0 = 6.2, _b_ = 2.7. However, the choice λ = 2 fits equally well the data for _T_ < 0.25, giving _T_ 0 = 9.3, _b_ = 1.7. As
shown in the main figure, the time evolution of _P_ ( _t_ ) at different temperatures can be collapsed very well onto a single
curve by rescaling the time with a characteristic transient time τ ∼ ( σ 0 _T_ <sup>2</sup> ) <sup>−1</sup> . This suggests a scaling relation
σ ( _t_, _T_ ) = σ 0( _T_ ) _f_ ( _t_ σ _o_ ( _T_ ) _T_ <sup>2</sup> ) . (4)
101
100
10-1
100
10
(b)
20
15
10
5
0
101 102 103
64 256 1024
_L_
1/ _T_
103
102
101
100
10-1
10-2
CPU 1
GPU 1
CPU 2
GPU 2
CPU 3
GPU 3
(a)
CPU 1: 3.2GHz 512kB
GPU 1: GTX 470
CPU 2: 2.4GHz 10MB
GPU 2: Tesla C2075
CPU 3: 3.1GHz 8MB
GPU 3: Tesla K20c
101 102 103
1/ _T_
<u>64</u> <u>128</u> <u>256</u> <u>512</u> <u>1024</u> <u>2048</u>
_L_
FIGURE 4. Computing time [ms] per executed hop for the serial and parallel codes in three different CPU+GPU platforms.
We benchmark a fair serial single CPU core implementation against our parallel GPU implementation (with the same CPU core
as host), both with double precision floating point operations. (a) Temperature dependence of the average rejection time ( _WR_ ) for
_L_ = 256. (b) Size dependence of the average update time ( _WU_ ) of the _N_ = _L_ <sup>2</sup> local energies. The insets show the speedup of the
GPU over the CPU implementation. While the speedup starts to saturate with _L_ in (b), it is still strongly growing with 1/ _T_ in (a).
We checked that finite-size effects on _P_ ( _t_ ) are negligible. The proportionality of τ to σ 0 <sup>−1</sup> is to be expected [2, 11],
since the typical hopping time of the current-carrying hops is ∼ exp[( _T_ 0/ _T_ ) <sup>1/2</sup> ]. A discussion of the significance of the
factor _T_ <sup>2</sup> (both in τ and, possibly, in the Efros-Shklovskii law) is outside the scope of this paper, but we note that using
the scaling variable _t_ /( σ 0 _T_ ) we obtain a much worse data collapse (not shown). It is interesting to compare Eq.(4)
with the scaling σ ( ω, _T_ ) = σ 0( _T_ ) _f_ ( ω / _T_ σ 0( _T_ )) for the low-frequency ac conductivity found in Ref.[12].
CODE PERFORMANCE
In this section we compare the performance of our parallel GPU code with that of a serial CPU implementation of
the mixed algorithm. In both cases, the wall-clock computing time required to execute a hop is the sum of two main
contributions: the _rejection_ _time_, _WR_, spent proposing and rejecting hops until one is accepted, and the _update time_,
_WU_, spent updating the _N_ local energies after a hop is executed. As discussed earlier, aside from hardware-related
corrections we expect _WR_ ∝ _A_ <sup>−1</sup> log _L_ for the CPU code and _WR_ ∝ ( _AM_ ) <sup>−1</sup> log _L_ for the GPU code running on _M_
threads, where the acceptance _A_ increases with the temperature and the log _L_ factor comes from the tower-sampling.
_WU_ is independent of the temperature and the configuration, and we expect _WU_ ∝ _L_ <sup>2</sup> . In the parallel implementation,
nevertheless, this will hold only at large enough _L_ (when the hardware occupancy saturates), while at smaller sizes the
scaling will be sublinear in _L_ <sup>2</sup>, and even constant for very small sizes. In the Coulomb glass, most excitations active
at low _T_ are _dipoles_ (short electron-hole pairs). In 2D the density of states of dipoles at low energy is constant, which
implies _A_ ∝ _T_ _in the steady state_ (indeed we find _A_ ≈ 0.03 _T_ ). Hence, the overall computing time will be dominated
by _WR_ for temperatures below a certain threshold that decreases with _L_ as log _L_ / _L_ <sup>2</sup>, and by _WU_ above the threshold.
To see how well the above estimates hold in practice, in Fig.4(a) we show the temperature dependence of _WR_ for the
CPU and GPU codes in the steady state for _L_ = 256 (the dependence on _L_ is very weak). For the CPU code, we see
roughly _WR_ ∝ 1/ _T_, as expected. For the GPU code we used a number of threads close to the optimal value _M_ <sup>∗</sup> ≈ _A_ <sup>−1</sup> .
Hence, at moderate temperatures where _M_ <sup>∗</sup> is not too large, _WR_ ∝ ( _M_ <sup>∗</sup> _A_ ) <sup>−1</sup> is almost independent of _T_, as expected.
At very low _T_, _M_ <sup>∗</sup> is large enough to saturate the maximum number of concurrent threads and thus _WR_ increases with
1/ _T_, although less than linearly since the GPU can still save time by hiding memory latency. Therefore, the relative
performance of the GPU vs the CPU codes, shown in the inset, is consistent with the expected linear behavior in 1/ _T_ .
In Fig.4(b) we compare the size dependence of _WU_ for the GPU and CPU implementations. As expected, for the
CPU we observe _WU_ ∝ _L_ <sup>2</sup> while for the GPU, using _L_ <sup>2</sup> threads, _WU_ is almost constant for small _L_ and grows for
large _L_ . Interestingly, the increase is still sublinear even when _L_ <sup>2</sup> is several times larger than the number of physical
cores, due to the efficient internal thread scheduling. Consequently the speedup, which is already substantial even for
relatively small sizes, increases with _L_ and exceeds two orders of magnitude at _L_ = 2048, without quite saturating yet.
The overall computing time _per executed hop_ of the GPU code is basically the sum of _WR_ and _WU_ . For example, for
the platform CPU3+GPU3 (see Fig.4 for details) the overall time ranges from 0.1 ms ( _L_ =64) to 1.04 ms ( _L_ =2048) at
_T_ = 0.05, representing speedups of 1.7x to 179x respect to the serial code, and 0.27 ms ( _L_ =64) to 1.23 ms ( _L_ =2048)
at _T_ = 0.001, representing speedups of 15x to 157x. Nevertheless, note that these speedup factors depend on the
particular serial implementation and hardware.
In order to see in what regime of _T_ and _L_ the GPU code may be useful in practice, it is illustrative to estimate the
physical time we can simulate in, say, a ten-day run. While this time is independent of _T_ for the CPU code, according
to the previous discussion it scales as 1/ _T_ for the GPU code for low enough _T_ . This is confirmed in Fig.1(b), where
we also show the transient time τ = 1/( σ 0 _T_ <sup>2</sup> ) for the establishment of a steady-state conductivity. Clearly, since τ
grows much faster than the speedup as _T_ decreases, even the GPU code cannot reach the steady state at very low _T_ .
At the temperatures at which we _can_ reach the steady state, the typical hopping length _r_ ∼ ( ξ /4)( _T_ 0/ _T_ ) <sup>1/2</sup> is less
than ten lattice spacings. Hence, for the purpose of measuring the conductivity it is preferable to average over many
samples at intermediate _L_, rather than a few samples at large _L_ . Large samples, for which the GPU code is significantly
advantageous, might be useful for studying the large-scale geometry of the conducting paths, for instance.
It is worth noting that the GPU code should be significantly more advantageous in 3D than in 2D, because (i) _N_
increases more rapidly with _L_, and (ii) both _T_ 0 and the dipole density of states of dipoles are smaller in 3D, so in the
VRH regime the acceptance rate is even lower. It is also straightforward to incorporate multiple-electron hops in our
GPU code. Since these hops have even lower acceptance rate, we expect the speedup to be substantial.
CONCLUSIONS
We have presented a novel parallel KMC technique for simulating the Coulomb glass hopping conduction. It allows
to simulate larger systems and longer times than its serial counterpart, with speedups over 100x for relatively large
system sizes in two dimensions. This might be helpful for studying features involving larger length-scales. In 2D, we
find that the short-time relaxation of the conductivity at different temperatures is well described by a single scaling
curve. Finally, our current implementation can be easily extended to higher dimensions, multiple occupation, and
multi-electron hops. For these extensions we can expect an even larger speedup with respect to the mathematically
equivalent serial implementation. The code is available to download, modify and use under GNU GPL 3.0 at [13].
ACKNOWLEDGMENTS
We acknowledge support from the “Acción Integrada Argentina-España” MINCYT-MINECO (Ref. PRI-AIBAR2011-1206). MP acknowledges support from MINECO (FIS2012-38266-C02-02) and AGAUR (2012 BE 00850).
We thank FaMAF-UNC (Argentina), and LIPhy-UJF (France) for computational resources for benchmarking and
simulations. MP thanks the CMSP section of ICTP for hospitality.
REFERENCES
1. D. N. Tsigankov and A. L. Efros, _Phys. Rev. Lett._ 88, 176602 (2002).
2. D. N. Tsigankov, E. Pazy, B. D. Laikhtman, and A. L. Efros, _Phys. Rev. B_ 68, 184205 (2003).
3. https://developer.nvidia.com/what-cuda (2013).
4. J. Niemi and M. Wheeler, _ArXiv e-prints_ (2011), 1101.4242.
5. A. Bortz, M. Kalos, and J. Lebowitz, _Journal of Computational Physics_ 17, 10 – 18 (1975), ISSN 0021-9991.
6. A. L. Efros, _Journal of Physics C: Solid State Physics_ 9, 2021 (1976).
7. W. Krauth, _Statistical Mechanics: Algorithms and Computations_, Oxford University Press, Oxford, 2006, pp. 33–34.
8. Thrust parallel algorithms library, http://thrust.github.com/ (2013).
9. J. K. Salmon, M. A. Moraes, R. O. Dror, and D. E. Shaw, “Parallel random numbers: as easy as 1, 2, 3,” in _Proceedings_ _of_
_2011_ _International_ _Conference_ _for High_ _Performance_ _Computing,_ _Networking,_ _Storage_ _and_ _Analysis_, SC ’11, ACM, New
York, NY, USA, 2011, pp. 16:1–16:12, ISBN 978-1-4503-0771-0.
10. M. Goethe and M. Palassini, unpublished; M. Goethe, Ph.D. thesis, University of Barcelona (2012).
11. J. Bergli and Y. M. Galperin, _Phys. Rev. B_ 85, 214202 (2012).
12. J. Bergli and Y. M. Galperin, in these Proceedings (2014).
13. https://bitbucket.org/ezeferrero/coulomb_glass (2014).
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.