Open main menu

CDOT Wiki β

Changes

GPUSquad

12 bytes removed, 13:16, 27 March 2018
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);
93
edits