Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
khalid
Dadi
Commits
d6b6459e
Commit
d6b6459e
authored
Jul 01, 2020
by
Ryan Gutenkunst
Browse files
Remove unused kernels from fscalc experiments
parent
ec968f8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
dadi/cuda/kernels.cu
View file @
d6b6459e
...
...
@@ -144,21 +144,3 @@ __global__ void compute_bc_nobc(double *dx, double *dfactor,
c
[
ii
*
M
+
jj
]
=
-
dfactor
[
ii
]
*
ctemp
;
}
}
__global__
void
diff_iny_2D
(
double
*
in
,
double
*
out
,
int
L
,
int
M
){
int
ii
=
(
blockIdx
.
x
*
blockDim
.
x
+
threadIdx
.
x
)
/
(
M
-
1
);
int
jj
=
(
blockIdx
.
x
*
blockDim
.
x
+
threadIdx
.
x
)
%
(
M
-
1
);
if
(
ii
<
L
){
out
[
ii
*
(
M
-
1
)
+
jj
]
=
in
[
ii
*
M
+
jj
+
1
]
-
in
[
ii
*
M
+
jj
];
}
}
__global__
void
drop_last_col_2D
(
double
*
in
,
double
*
out
,
int
L
,
int
M
){
int
ii
=
(
blockIdx
.
x
*
blockDim
.
x
+
threadIdx
.
x
)
/
(
M
-
1
);
int
jj
=
(
blockIdx
.
x
*
blockDim
.
x
+
threadIdx
.
x
)
%
(
M
-
1
);
if
(
ii
<
L
){
out
[
ii
*
(
M
-
1
)
+
jj
]
=
in
[
ii
*
M
+
jj
];
}
}
\ No newline at end of file
dadi/cuda/kernels.py
View file @
d6b6459e
...
...
@@ -17,6 +17,4 @@ _Mfunc5D = mod.get_function("Mfunc5D")
_cx0
=
mod
.
get_function
(
"cx0"
)
_compute_ab_nobc
=
mod
.
get_function
(
"compute_ab_nobc"
)
_compute_bc_nobc
=
mod
.
get_function
(
"compute_bc_nobc"
)
_include_bc
=
mod
.
get_function
(
"include_bc"
)
diff_iny_2D
=
mod
.
get_function
(
"diff_iny_2D"
)
drop_last_col_2D
=
mod
.
get_function
(
"drop_last_col_2D"
)
\ No newline at end of file
_include_bc
=
mod
.
get_function
(
"include_bc"
)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment