#include #include #include #include #include "CL_helper.h" #ifndef DEVICE #define DEVICE CL_DEVICE_TYPE_DEFAULT #endif #define TOL (0.001) #define STR_SIZE (256) #define MAX_PD (3.0e6) /* required precision in degrees */ #define PRECISION 0.001 #define SPEC_HEAT_SI 1.75e6 #define K_SI 100 /* capacitance fitting factor */ #define FACTOR_CHIP 0.5 #define WG_SIZE_X (64) #define WG_SIZE_Y (4) float t_chip = 0.0005; float chip_height = 0.016; float chip_width = 0.016; float amb_temp = 80.0; void usage(int argc, char **argv) { fprintf(stderr, "Usage: %s \n", argv[0]); fprintf(stderr, "\t - number of rows/cols in the grid (positive integer)\n"); fprintf(stderr, "\t - number of layers in the grid (positive integer)\n"); fprintf(stderr, "\t - number of iterations\n"); fprintf(stderr, "\t - name of the file containing the initial power values of each cell\n"); fprintf(stderr, "\t - name of the file containing the initial temperature values of each cell\n"); fprintf(stderr, "\t