Skip to content

Commit 83dce87

Browse files
committed
f
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent ad04335 commit 83dce87

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

fuzz/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ fn main() {
2020
println!("cargo:rustc-cfg=cuda_available");
2121

2222
// Set rpath for nvCOMP dylib (re-exported by vortex-cuda).
23+
#[expect(clippy::expect_used)]
2324
let nvcomp_lib = std::env::var("DEP_VORTEX_CUDA_LIB_DIR").expect("must have nvcomp");
2425
println!("cargo:rustc-link-arg=-Wl,-rpath,{nvcomp_lib}");
2526
}

vortex-cuda/benches/for_cuda.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ fn benchmark_for_u8(c: &mut Criterion) {
173173
&for_array,
174174
|b, for_array| {
175175
b.iter_custom(|iters| {
176-
let mut cuda_ctx = CudaSession::create_execution_ctx(VortexSession::empty())
176+
let mut cuda_ctx = CudaSession::create_execution_ctx(&VortexSession::empty())
177177
.vortex_expect("failed to create execution context");
178178

179179
let encoded = for_array.encoded();
@@ -224,7 +224,7 @@ fn benchmark_for_u16(c: &mut Criterion) {
224224
&for_array,
225225
|b, for_array| {
226226
b.iter_custom(|iters| {
227-
let mut cuda_ctx = CudaSession::create_execution_ctx(VortexSession::empty())
227+
let mut cuda_ctx = CudaSession::create_execution_ctx(&VortexSession::empty())
228228
.vortex_expect("failed to create execution context");
229229

230230
let encoded = for_array.encoded();
@@ -275,7 +275,7 @@ fn benchmark_for_u32(c: &mut Criterion) {
275275
&for_array,
276276
|b, for_array| {
277277
b.iter_custom(|iters| {
278-
let mut cuda_ctx = CudaSession::create_execution_ctx(VortexSession::empty())
278+
let mut cuda_ctx = CudaSession::create_execution_ctx(&VortexSession::empty())
279279
.vortex_expect("failed to create execution context");
280280

281281
let encoded = for_array.encoded();
@@ -326,7 +326,7 @@ fn benchmark_for_u64(c: &mut Criterion) {
326326
&for_array,
327327
|b, for_array| {
328328
b.iter_custom(|iters| {
329-
let mut cuda_ctx = CudaSession::create_execution_ctx(VortexSession::empty())
329+
let mut cuda_ctx = CudaSession::create_execution_ctx(&VortexSession::empty())
330330
.vortex_expect("failed to create execution context");
331331

332332
let encoded = for_array.encoded();

vortex-cuda/benches/zstd_cuda.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ fn benchmark_zstd_cuda_decompress(c: &mut Criterion) {
123123
&zstd_array,
124124
|b, zstd_array| {
125125
b.iter_custom(|iters| {
126-
let mut cuda_ctx = CudaSession::create_execution_ctx(VortexSession::empty())
126+
let mut cuda_ctx = CudaSession::create_execution_ctx(&VortexSession::empty())
127127
.vortex_expect("failed to create execution context");
128128

129129
let mut total_time = Duration::ZERO;

0 commit comments

Comments
 (0)