We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c85eca commit 15a7d65Copy full SHA for 15a7d65
examples/vector_add/main.cu
@@ -17,9 +17,9 @@ void cuda_check(cudaError_t code) {
17
template<int N>
18
__global__ void my_kernel(
19
int length,
20
- const kf::unaligned_halfX<N>* input,
+ const kf::unaligned_vec<__half, N>* input,
21
double constant,
22
- kf::unaligned_floatX<N>* output) {
+ kf::unaligned_vec<float, N>* output) {
23
int i = blockIdx.x * blockDim.x + threadIdx.x;
24
25
if (i * N < length) {
@@ -86,4 +86,4 @@ int main() {
86
87
std::cout << "result correct\n";
88
return EXIT_SUCCESS;
89
-}
+}
0 commit comments