From ed61ceb8d51ba308da723f81bf63128f17a8eb78 Mon Sep 17 00:00:00 2001 From: Shirong_Wang Date: Fri, 29 May 2026 16:17:22 +0800 Subject: [PATCH 1/3] max cache no par --- src/cint_crafter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cint_crafter.rs b/src/cint_crafter.rs index b344975..8de0879 100644 --- a/src/cint_crafter.rs +++ b/src/cint_crafter.rs @@ -1034,7 +1034,7 @@ impl CInt { let shls_max = shls_slice.iter().map(|x| x[1]).max().unwrap_or(nbas); (shls_min..shls_max) - .into_par_iter() + .into_iter() .map(|shl| unsafe { let shls = [shl; 4]; match self.cint_type { -- Gitee From 0b02c1ff79a5d1ba0909a47a88f646236c60f94e Mon Sep 17 00:00:00 2001 From: Shirong_Wang Date: Fri, 29 May 2026 21:46:57 +0800 Subject: [PATCH 2/3] try no align --- src/util.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util.rs b/src/util.rs index 95d9f07..c465b4e 100644 --- a/src/util.rs +++ b/src/util.rs @@ -841,7 +841,10 @@ pub fn aligned_alloc(numbytes: usize, alignment: usize) -> Option> { /// Nevertheless, if `T` is some type of `MaybeUninit`, then this will not UB. #[inline] pub unsafe fn aligned_uninitialized_vec(size: usize) -> Vec { + #[cfg(not(target_os = "windows"))] const MIN_ALIGN: usize = 64; // minimal number of elements in vector to be aligned + #[cfg(target_os = "windows")] + const MIN_ALIGN: usize = 99999999; // minimal number of elements in vector to be aligned const ALIGNMENT: usize = 64; // 64 bytes alignment (minimal requirement for AVX-512) if size == 0 { -- Gitee From 203b4c4f631321caab56941aa1c491e4c6529c89 Mon Sep 17 00:00:00 2001 From: Shirong_Wang Date: Thu, 4 Jun 2026 13:46:25 +0800 Subject: [PATCH 3/3] use usize::MAX --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index c465b4e..4c20ab7 100644 --- a/src/util.rs +++ b/src/util.rs @@ -844,7 +844,7 @@ pub unsafe fn aligned_uninitialized_vec(size: usize) -> Vec { #[cfg(not(target_os = "windows"))] const MIN_ALIGN: usize = 64; // minimal number of elements in vector to be aligned #[cfg(target_os = "windows")] - const MIN_ALIGN: usize = 99999999; // minimal number of elements in vector to be aligned + const MIN_ALIGN: usize = usize::MAX; // disable align on windows, see pr !6 const ALIGNMENT: usize = 64; // 64 bytes alignment (minimal requirement for AVX-512) if size == 0 { -- Gitee