Skip to content

Instantly share code, notes, and snippets.

View ravikul505's full-sized avatar
🧨
Explosive

Kill Engine ravikul505

🧨
Explosive
View GitHub Profile
#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;
@ravikul505
ravikul505 / run.bat
Last active July 28, 2023 04:12
run singular cpp file in vs code
@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
)