Zip and Skip Tries
Loading...
Searching...
No Matches
msw.cuh
Go to the documentation of this file.
1
10#pragma once
11
12#include <cstddef> // size_t
13#include <cstdint> // uintmax_t
14
25size_t seq_find_mismatch(const uintmax_t * const a, const uintmax_t * const b, size_t n);
26
38size_t par_find_mismatch(const uintmax_t * const a, const uintmax_t * const b, size_t n);
39
52size_t par_find_mismatch(const uintmax_t * const d_a, const uintmax_t * const b, uintmax_t *d_large_block, size_t n);
53
T * alloc_to_device(size_t size)
Allocates memory on the CUDA device.
size_t seq_find_mismatch(const uintmax_t *const a, const uintmax_t *const b, size_t n)
Sequential implementation of finding the first mismatching word between two arrays.
Definition msw.cu:141
uintmax_t * alloc_large_block_to_device(size_t max_n)
Allocates a large block of device memory for parallel mismatch operations.
Definition msw.cu:256
size_t par_find_mismatch(const uintmax_t *const a, const uintmax_t *const b, size_t n)
GPU-accelerated implementation of finding the first mismatching word.
Definition msw.cu:280