Skip to content

Commit

Permalink
Switch from min_specialization to specialization to remove exploding …
Browse files Browse the repository at this point in the history
…compile time
  • Loading branch information
juntyr committed Jan 10, 2024
1 parent 97324d4 commit 00f2d6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion rustcoalescence/algorithms/cuda/cpu-kernel/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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"]

Expand Down
6 changes: 3 additions & 3 deletions rustcoalescence/algorithms/cuda/cpu-kernel/src/patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern "C" {
}

#[allow(clippy::trait_duplication_in_bounds)]
unsafe impl<
default unsafe impl<
'a,
'b,
'c,
Expand Down Expand Up @@ -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() }
}
}

0 comments on commit 00f2d6f

Please sign in to comment.