summaryrefslogtreecommitdiff
path: root/main.cu
diff options
context:
space:
mode:
authorBrett Weiland <brett_weiland@gmail.com>2024-05-08 22:52:46 -0500
committerBrett Weiland <brett_weiland@gmail.com>2024-05-08 22:52:46 -0500
commit882999e591ece292d5ddbc87020ba70b3d2d1658 (patch)
treee09b8ccc68f447a096981355b4330c31b4fcb268 /main.cu
parentae190c620265549ac2d355a94de19c905d54c2a0 (diff)
workspace
Diffstat (limited to 'main.cu')
-rw-r--r--main.cu6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.cu b/main.cu
new file mode 100644
index 0000000..9063a8f
--- /dev/null
+++ b/main.cu
@@ -0,0 +1,6 @@
+#include "include/helper_math.h"
+__global__ void random_noise(double **image) {
+ int2 unnormalized_coordinates = make_int2(blockDim.x, blockDim.y) * make_int2(blockIdx.x, blockIdx.y) + make_int2(threadIdx.x, threadIdx.y);
+ int2 img_res = make_int2(blockDim.x, blockDim.y) * make_int2(gridDim.x, gridDim.y);//could move out of kernel for performance boost
+
+}