summaryrefslogtreecommitdiff
path: root/src/solvers/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/solvers/mod.rs')
-rwxr-xr-xsrc/solvers/mod.rs27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/solvers/mod.rs b/src/solvers/mod.rs
index 6d26266..1bdc228 100755
--- a/src/solvers/mod.rs
+++ b/src/solvers/mod.rs
@@ -1,28 +1,5 @@
//pub mod incremental_block;
pub mod intuitive;
-#[cfg(feature = "gpu")]
-pub mod opencl;
+//#[cfg(feature = "gpu")]
pub mod gpusolver;
-
-lazy_static! {
- pub static ref PERMUTATIONS: (Vec<Vec<u32>>, Vec<u64>) = {
- let n = crate::N;
- let mut heap = (1..=n).collect::<Vec<u32>>();
- let heap = permutohedron::Heap::new(&mut heap);
- let n_f = permutohedron::factorial(n as usize);
- let mut permutations = Vec::with_capacity(n_f);
-
- let mut masks: Vec<u64> = vec![0; n_f];
- println!("Generating permutations");
- for (j, data) in heap.enumerate() {
- let mut sum = 0;
- permutations.push(data.clone());
- for stone in data.iter().take(n as usize - 1) {
- sum += stone;
- masks[j] |= 1 << sum;
- }
- }
- (permutations, masks)
- };
-}
-
+pub mod opencl;