Skip to content

Instantly share code, notes, and snippets.

@freeone3000
freeone3000 / gpu_test_harness.cu
Created February 22, 2022 02:49
GPU Test Harness for testing approximations of functions
#include <cstdint>
#include <cmath>
#include <cstdio>
/************************************************
** FUNCTION UNDER TEST ** FUNCTION UNDER TEST **
************************************************/
__device__ double f(double x) {
double u = 3.9673376333093636e-25;
u = u * x + 8.2280391928859032e-24;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadPoolExecutor;
public class CallableExample
{