From 8987c02c796661fdd8c10ece1a5ce2aa4f26a946 Mon Sep 17 00:00:00 2001
From: M Algah Fattah Illahi <13517122@std.stei.itb.ac.id>
Date: Sat, 28 Mar 2020 00:22:59 +0700
Subject: [PATCH] set template in paralel.cu

---
 .gitignore     |  6 ++++++
 src/paralel.cu | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 src/paralel.cu

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a9e0425
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+# binaries
+bin/*
+
+# scripts
+connect
+push
diff --git a/src/paralel.cu b/src/paralel.cu
new file mode 100644
index 0000000..315651f
--- /dev/null
+++ b/src/paralel.cu
@@ -0,0 +1,46 @@
+#include <iostream>
+#include <stdlib.h>
+#include <stdio.h>
+
+
+int main () {
+    
+    // allocate memory in host for the graph
+    // code goes here
+
+    // allocate memory in the host for the result matrice
+    // code goes here
+
+    // copy graph from host to device
+    // code goes here
+
+
+
+    // start timer
+    // code goes here
+
+
+    // calculate the shortest paths using device
+    // code goes here
+
+
+    // copy result array from device to host
+    // code goes here
+
+
+    // synchronize device
+    // code goes here
+
+
+    // stop the timer
+    // code goes here
+
+
+    // write result matrice to a file
+    // code goes here
+
+
+
+
+    return 0;
+}
\ No newline at end of file
-- 
GitLab