← All Distributed Computing Projects
Dense 128×128 Matrix & Neural ReLU Layer Micro-Batch
Task tsk_0004_matrix_neural · Published by @ezmone ·
Category: Linear Algebra / ML ·
Status: OPEN
Computes dense 128×128 matrix multiplication with ReLU activation and L2 norm reduction (CPU multi-core and Vulkan GPU offload capable).
b3ce69d533e2d86b8567f47bfe02ff7344802e7ed756d2dd0ad05ef76698d0a6
Bound into every appliance built for this task.
Full Task Code Audit (Inspect Everything Before Accepting)
Before downloading any appliance, inspect the exact EZC v1 safe compute blocks written by @ezmone, our plain-English step-by-step summary, and the exact C source code compiled into the appliance. No hidden code, external libraries, shell commands, or network calls can be added.
Step-by-Step Plain-English Audit (10 verified operations)
- Allocate fixed float64 matrix weights[128×128] (131072 bytes, bounds-checked)
- Allocate fixed float64 matrix inputs[128×128] (131072 bytes, bounds-checked)
- Allocate fixed float64 matrix hidden[128×128] (131072 bytes, bounds-checked)
- Declare float64 scalar norm_out = 0
- Fill weights (16384 elements) deterministically from assigned work chunk seed
- Fill inputs (16384 elements) deterministically from assigned work chunk seed
- Dense matrix multiply hidden[128×128] = weights[128×128] × inputs[128×128] (CPU/GPU parallel)
- Apply pure math RELU elementwise: hidden <- RELU(hidden)
- Reduce hidden[16384] via L2_NORM into scalar norm_out
- Emit verified deterministic result for norm_out (SCALAR) back to ezmon-e
Exact EZC v1 Safe Block Source Code
MAT weights 128 128
MAT inputs 128 128
MAT hidden 128 128
SCALAR norm_out 0
LOAD_CHUNK weights
LOAD_CHUNK inputs
MATMUL hidden weights inputs
MAP hidden hidden RELU
REDUCE norm_out hidden L2_NORM
EMIT norm_out
Exact Compiled ANSI C99 Code (SHA-256: 083ade696b4f613d26f81a1e91bb741944ebfbe29c091feb090b603094428b8e)
/* Auto-generated by ezmon-e EZC v1 Safe Compute Compiler.
* Zero syscalls, zero raw pointers, zero dynamic allocation, strictly bounded loops.
* Source SHA-256: b3ce69d533e2d86b8567f47bfe02ff7344802e7ed756d2dd0ad05ef76698d0a6
*/
#include "ezc_runtime.h"
static double ezv_weights[16384];
static double ezv_inputs[16384];
static double ezv_hidden[16384];
static double ezv_norm_out = 0;
int ezc_run_chunk(uint64_t task_seed, uint64_t chunk_index, ezc_emit_ctx *emit) {
ezc_zero(ezv_weights, 16384);
ezc_zero(ezv_inputs, 16384);
ezc_zero(ezv_hidden, 16384);
ezv_norm_out = 0;
ezc_load_chunk(ezv_weights, 16384, task_seed, chunk_index, 5U);
ezc_load_chunk(ezv_inputs, 16384, task_seed, chunk_index, 6U);
ezc_matmul(ezv_hidden, ezv_weights, ezv_inputs, 128, 128, 128);
ezc_map(ezv_hidden, ezv_hidden, 16384, EZC_MAP_RELU, 0);
ezv_norm_out = ezc_reduce(ezv_hidden, 16384, EZC_RED_L2_NORM);
ezc_emit_scalar(emit, ezv_norm_out);
return 0;
}
Included Safe Compute Header: ezc_runtime.h (SHA-256: eac06d7ca873dcace5bd54cdb5114c92385740b525f4aee68e7eb11d19ca4da0)
This is the exact C header included by #include "ezc_runtime.h" above, declaring every allowed EZC v1 operation signature and output structure. You can also view it directly as plain text at /compute/runtime/ezc_runtime.h.
#ifndef EZC_RUNTIME_H
#define EZC_RUNTIME_H
#include <stdint.h>
#include <stddef.h>
enum {
EZC_MAP_ADD_CONST = 1,
EZC_MAP_MUL_CONST = 2,
EZC_MAP_ABS = 3,
EZC_MAP_SQRT_SAFE = 4,
EZC_MAP_EXP_CLAMP = 5,
EZC_MAP_LOG_SAFE = 6,
EZC_MAP_SIN = 7,
EZC_MAP_COS = 8,
EZC_MAP_TANH = 9,
EZC_MAP_RELU = 10,
EZC_MAP_SIGMOID = 11,
EZC_MAP_SQUARE = 12,
EZC_MAP_CLAMP01 = 13
};
enum {
EZC_ZIP_ADD = 1,
EZC_ZIP_SUB = 2,
EZC_ZIP_MUL = 3,
EZC_ZIP_DIV_SAFE = 4,
EZC_ZIP_MIN = 5,
EZC_ZIP_MAX = 6
};
enum {
EZC_RED_SUM = 1,
EZC_RED_MEAN = 2,
EZC_RED_MIN = 3,
EZC_RED_MAX = 4,
EZC_RED_L2_NORM = 5
};
enum {
EZC_MC_PI_CIRCLE = 1,
EZC_MC_GAUSS_INTEGRAL = 2,
EZC_MC_BLACK_SCHOLES_CALL = 3,
EZC_MC_ISING_ENERGY = 4
};
typedef struct {
uint32_t state[8];
uint64_t bitlen;
uint8_t data[64];
size_t datalen;
} ezc_sha256_ctx;
typedef struct {
ezc_sha256_ctx sha;
int emitted_count;
double last_summary;
} ezc_emit_ctx;
void ezc_zero(double *dst, int n);
void ezc_fill(double *dst, int n, double val);
void ezc_load_chunk(double *dst, int n, uint64_t task_seed, uint64_t chunk_index, uint32_t salt);
void ezc_map(double *dst, const double *src, int n, int op, double arg);
void ezc_zip(double *dst, const double *a, const double *b, int n, int op);
void ezc_matmul(double *dst, const double *a, const double *b, int m, int k, int n);
void ezc_conv1d(double *dst, const double *src, int n, const double *kern, int kl);
void ezc_fft_radix2(double *re, double *im, int n);
double ezc_reduce(const double *src, int n, int op);
double ezc_monte_carlo(uint64_t task_seed, uint64_t chunk_index, uint32_t salt, int samples, int mode);
int64_t ezc_prime_sieve(uint64_t chunk_index, uint32_t window);
int64_t ezc_hash_scan(uint64_t task_seed, uint64_t chunk_index, uint32_t leading_bits, uint32_t max_iters);
void ezc_heapsort(double *a, int n);
void ezc_emit_scalar(ezc_emit_ctx *ctx, double val);
void ezc_emit_buffer(ezc_emit_ctx *ctx, const double *buf, int n);
/* Generated strictly by ezmon-e EZC v1 compiler (task_kernel.c) */
int ezc_run_chunk(uint64_t task_seed, uint64_t chunk_index, ezc_emit_ctx *emit);
#endif /* EZC_RUNTIME_H */
Configure Resources & Build Your Personal Single-Task QEMU Appliance
Sign up free or log in so ezmon-e can build an appliance cryptographically bound to your @username and credit all verified compute sessions directly to your account.