From 00f2d6fa6c2c5f4f11e1e1bfb35c821d57f0a6d8 Mon Sep 17 00:00:00 2001 From: Juniper Tyree Date: Wed, 10 Jan 2024 17:54:50 +0000 Subject: [PATCH] Switch from min_specialization to specialization to remove exploding compile time --- rustcoalescence/algorithms/cuda/cpu-kernel/src/lib.rs | 3 ++- rustcoalescence/algorithms/cuda/cpu-kernel/src/patch.rs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/rustcoalescence/algorithms/cuda/cpu-kernel/src/lib.rs b/rustcoalescence/algorithms/cuda/cpu-kernel/src/lib.rs index ce0bb6b52..1455ab2b0 100644 --- a/rustcoalescence/algorithms/cuda/cpu-kernel/src/lib.rs +++ b/rustcoalescence/algorithms/cuda/cpu-kernel/src/lib.rs @@ -1,6 +1,7 @@ #![deny(clippy::pedantic)] #![feature(c_str_literals)] -#![feature(min_specialization)] +#![allow(incomplete_features)] +#![feature(specialization)] #![allow(long_running_const_eval)] #![recursion_limit = "1024"] diff --git a/rustcoalescence/algorithms/cuda/cpu-kernel/src/patch.rs b/rustcoalescence/algorithms/cuda/cpu-kernel/src/patch.rs index 686d84bf3..4ae9b8825 100644 --- a/rustcoalescence/algorithms/cuda/cpu-kernel/src/patch.rs +++ b/rustcoalescence/algorithms/cuda/cpu-kernel/src/patch.rs @@ -28,7 +28,7 @@ extern "C" { } #[allow(clippy::trait_duplication_in_bounds)] -unsafe impl< +default unsafe impl< 'a, 'b, 'c, @@ -180,11 +180,11 @@ where simulate<'a, 'b, 'c, 'd, 'e, 'f, 'g, M, H, G, S, X, D, C, T, N, E, I, A, True, True>, >, { - default fn get_ptx() -> &'static CStr { + fn get_ptx() -> &'static CStr { unsafe { unreachable_cuda_simulation_linking_reporter() } } - default fn get_entry_point() -> &'static CStr { + fn get_entry_point() -> &'static CStr { unsafe { unreachable_cuda_simulation_linking_reporter() } } }