interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / tests / dagsim / sha256_host.c

19 lines · 752 bytes Raw Blame History
1/* Link stub for the imported dagsim binary on hosts that are not AArch64.
2 * src/omega_om_units.c is AArch64 machine code. rx_costmodel.o references
3 * sha256_hash from serialize/digest only. The analytical dagsim tests do not
4 * call it. On AArch64 the Makefile links src/omega_om_units.c instead, and
5 * this file is not built. dagsim --model is NOT_RUN on this stub: a blob
6 * digest would abort rather than return a made-up hash.
7 */
8#if !defined(__aarch64__)
9#include <stdio.h>
10#include <stdlib.h>
11#include <stddef.h>
12#include <stdint.h>
13
14void sha256_hash(const uint8_t *d, size_t n, uint8_t out[32]) {
15 (void)d; (void)n; (void)out;
16 fprintf(stderr, "sha256_hash: host stub; dagsim --model is NOT_RUN off AArch64\n");
17 abort();
18}
19#endif