1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
mod error;

pub use self::error::*;

#[cfg(any(feature = "cuda", feature = "opencl"))]
mod locks;

#[cfg(any(feature = "cuda", feature = "opencl"))]
pub use self::locks::*;

#[cfg(any(feature = "cuda", feature = "opencl"))]
mod multiexp;

#[cfg(any(feature = "cuda", feature = "opencl"))]
pub use self::multiexp::CpuGpuMultiexpKernel;

#[cfg(not(any(feature = "cuda", feature = "opencl")))]
mod nogpu;

#[cfg(not(any(feature = "cuda", feature = "opencl")))]
pub use self::nogpu::*;

// This is a hack, so that the same traits can be used for the GPU and non-GPU code path.
#[cfg(any(feature = "cuda", feature = "opencl"))]
pub use ec_gpu::GpuName;
#[cfg(not(any(feature = "cuda", feature = "opencl")))]
pub trait GpuName {}
#[cfg(not(any(feature = "cuda", feature = "opencl")))]
impl GpuName for blstrs::G1Affine {}
#[cfg(not(any(feature = "cuda", feature = "opencl")))]
impl GpuName for blstrs::G2Affine {}
#[cfg(not(any(feature = "cuda", feature = "opencl")))]
impl GpuName for blstrs::Scalar {}