93
edits
Changes
GPUSquad
,→Assignment 2
using namespace std;
'''__global__ void matrixKernel(float* a, float* b, float dcent, int n, int m, int xmin, int xmax,
int ymin, int ymax, float dx, float dy, float dxxinv, float dyyinv) {//MODIFY to suit algorithm
}
}'''
// Set grid size and number of iterations
const int save_iters = 20;
dim3 dBlock(m);
'''// Carry out Jacobi iterations
for (k = 1; k <= total_iters; k++) {
if (k % 2 == 0) {
}
}
}'''
cudaMemcpy(a, d_a, n* m * sizeof(float), cudaMemcpyDeviceToHost);
outputImage("jacobi out", a);