Skip to content

Commit 764c5e7

Browse files
committed
Correct naming - _host.cu and _host.hu
1 parent aea21d3 commit 764c5e7

9 files changed

+10
-10
lines changed

a_host.cu renamed to a_kernel.cu

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "a_host.hu"
1+
#include "a_kernel.hu"
22

33
__global__ void kernel0(int *a, int *b, int *c)
44
{

a_host.hu renamed to a_kernel.hu

File renamed without changes.

add_host.cu renamed to add_kernel.cu

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "add_host.hu"
1+
#include "add_kernel.hu"
22

33
__global__ void kernel0(int *a, int *b, int *c)
44
{
File renamed without changes.

convert.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def main():
130130
name = fname.split('/')[1][:-2]
131131

132132
fhostcu = name + "_host.cu"
133-
fkernelcu = name + "_host.cu"
134-
fkernelhu = name + "_host.hu"
133+
fkernelcu = name + "_kernel.cu"
134+
fkernelhu = name + "_kernel.hu"
135135

136136
kernelhu = "#include \"cuda.h\"\n\n__global__ void kernel0("
137137
kernelcu = "#include \"" + fkernelhu + "\"\n\n__global__ void kernel0("

dead_host.cu renamed to dead_kernel.cu

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "dead_host.hu"
1+
#include "dead_kernel.hu"
22

33
__global__ void kernel0(int *a, int *b)
44
{
@@ -7,9 +7,9 @@ __global__ void kernel0(int *a, int *b)
77
{
88
int c;
99
int d;
10-
c = a[t0];
10+
c = a[i];
1111
d = c;
12-
b[t0] = c;
12+
b[i] = c;
1313
}
1414

1515

File renamed without changes.

live_out_host.cu renamed to live_out_kernel.cu

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "live_out_host.hu"
1+
#include "live_out_kernel.hu"
22

33
__global__ void kernel0(int *A)
44
{
@@ -7,8 +7,8 @@ __global__ void kernel0(int *A)
77
{
88
int i = 1;
99
i = i * i;
10-
A[t0] = 1;
11-
A[0] = 0;
10+
A[i] = 1;
11+
A[t0] = 0;
1212

1313

1414
}
File renamed without changes.

0 commit comments

Comments
 (0)