2023-09-08 11:35:18 +02:00
|
|
|
/* GPU Kernels.
|
2018-06-25 17:03:09 +02:00
|
|
|
*
|
2023-01-07 17:20:15 +01:00
|
|
|
* Author: Daniel Krebs <github@daniel-krebs.net>
|
2023-09-08 11:35:18 +02:00
|
|
|
* SPDX-FileCopyrightText: 2017 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
2023-01-07 17:20:15 +01:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2023-09-08 11:35:18 +02:00
|
|
|
*/
|
2018-06-25 17:03:09 +02:00
|
|
|
|
2018-05-15 17:35:45 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <cuda_runtime.h>
|
|
|
|
|
|
|
|
namespace villas {
|
|
|
|
namespace gpu {
|
|
|
|
|
2024-02-29 19:34:27 +01:00
|
|
|
__global__ void kernel_mailbox(volatile uint32_t *mailbox,
|
|
|
|
volatile uint32_t *counter);
|
2018-05-15 17:35:45 +02:00
|
|
|
|
2024-02-29 19:34:27 +01:00
|
|
|
__global__ void kernel_memcpy(volatile uint8_t *dst, volatile uint8_t *src,
|
|
|
|
size_t length);
|
2018-05-15 17:35:45 +02:00
|
|
|
|
2023-09-08 11:35:18 +02:00
|
|
|
} // namespace gpu
|
2024-02-29 19:34:27 +01:00
|
|
|
} // namespace villas
|