This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// Matrix dimensions | |
#define N 1024 | |
// CUDA kernel for matrix multiplication | |
__global__ void matrixMulKernel(float* A, float* B, float* C, int width) { | |
int row = blockIdx.y * blockDim.y + threadIdx.y; | |
int col = blockIdx.x * blockDim.x + threadIdx.x; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
rem check for flags | |
if "%1" == "" goto noflags | |
rem Check if the file exists | |
if not exist "%~1.cpp" ( | |
echo File "%~1.cpp" not found. | |
exit /b 1 | |
) |