← All Distributed Computing Projects

Signal Denoising & 4096-Point Spectrum FFT

Task tsk_0003_radio_fft · Published by @ezmone · Category: Signal Processing / Astronomy · Status: OPEN

Applies a 5-tap 1D convolution smoothing kernel followed by a 4096-point radix-2 Fast Fourier Transform to measure spectral energy across time-series windows.

Task Progress (0%) 342 / 250000 chunks
Verified Complexity Per Chunk 139,269 ops Working buffer memory: 96.0 KiB · Parallel / GPU-friendly
Code Integrity Digest (SHA-256) c0301676601899c18c939d5fdbc9a61e643cbbbac0a8c3f12dd84d97f827dbd7 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 (15 verified operations)
  1. Allocate fixed float64 vector raw_sig[4096] (32768 bytes, bounds-checked)
  2. Allocate fixed float64 vector filtered[4096] (32768 bytes, bounds-checked)
  3. Allocate fixed float64 vector imag[4096] (32768 bytes, bounds-checked)
  4. Allocate fixed float64 vector kernel[5] (40 bytes, bounds-checked)
  5. Declare float64 scalar peak_energy = 0
  6. Fill raw_sig (4096 elements) deterministically from assigned work chunk seed
  7. Set all 5 element(s) of kernel to constant 0.2
  8. 1D convolution filter filtered = conv1d(raw_sig[4096], kernel[5])
  9. Set all 4096 element(s) of imag to constant 0
  10. In-place radix-2 Fast Fourier Transform over complex vector (filtered, imag) of length 4096
  11. Apply pure math SQUARE elementwise: filtered <- SQUARE(filtered)
  12. Apply pure math SQUARE elementwise: imag <- SQUARE(imag)
  13. Combine filtered and imag elementwise with ADD into filtered
  14. Reduce filtered[4096] via MAX into scalar peak_energy
  15. Emit verified deterministic result for peak_energy (SCALAR) back to ezmon-e
Exact EZC v1 Safe Block Source Code
VEC raw_sig 4096
VEC filtered 4096
VEC imag 4096
VEC kernel 5
SCALAR peak_energy 0
LOAD_CHUNK raw_sig
FILL kernel 0.2
CONV1D filtered raw_sig kernel
FILL imag 0
FFT filtered imag
MAP filtered filtered SQUARE
MAP imag imag SQUARE
ZIP filtered filtered imag ADD
REDUCE peak_energy filtered MAX
EMIT peak_energy
Exact Compiled ANSI C99 Code (SHA-256: 8fc7151a6e1c75f208d1fc735828e90ee2794657755e9bdffdd406489a493ae8)
/* Auto-generated by ezmon-e EZC v1 Safe Compute Compiler.
 * Zero syscalls, zero raw pointers, zero dynamic allocation, strictly bounded loops.
 * Source SHA-256: c0301676601899c18c939d5fdbc9a61e643cbbbac0a8c3f12dd84d97f827dbd7
 */
#include "ezc_runtime.h"

static double ezv_raw_sig[4096];
static double ezv_filtered[4096];
static double ezv_imag[4096];
static double ezv_kernel[5];
static double ezv_peak_energy = 0;

int ezc_run_chunk(uint64_t task_seed, uint64_t chunk_index, ezc_emit_ctx *emit) {
    ezc_zero(ezv_raw_sig, 4096);
    ezc_zero(ezv_filtered, 4096);
    ezc_zero(ezv_imag, 4096);
    ezc_zero(ezv_kernel, 5);
    ezv_peak_energy = 0;
    ezc_load_chunk(ezv_raw_sig, 4096, task_seed, chunk_index, 6U);
    ezc_fill(ezv_kernel, 5, 0.20000000000000001);
    ezc_conv1d(ezv_filtered, ezv_raw_sig, 4096, ezv_kernel, 5);
    ezc_fill(ezv_imag, 4096, 0);
    ezc_fft_radix2(ezv_filtered, ezv_imag, 4096);
    ezc_map(ezv_filtered, ezv_filtered, 4096, EZC_MAP_SQUARE, 0);
    ezc_map(ezv_imag, ezv_imag, 4096, EZC_MAP_SQUARE, 0);
    ezc_zip(ezv_filtered, ezv_filtered, ezv_imag, 4096, EZC_ZIP_ADD);
    ezv_peak_energy = ezc_reduce(ezv_filtered, 4096, EZC_RED_MAX);
    ezc_emit_scalar(emit, ezv_peak_energy);
    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.

Submit an Idea or Report a Bug

Short notes go straight to the ezmon-e operator panel. Thank you for helping improve the site.

Submission type