We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ab15ea commit bbe7719Copy full SHA for bbe7719
src/Lab/CLMultiplication/Program.cs
@@ -6,6 +6,10 @@ namespace CLMultiplication
6
{
7
internal class Program
8
9
+ private static int Factorial(int n)
10
+ {
11
+ return n <= 1 ? 1 : n * Factorial(n - 1);
12
+ }
13
private static unsafe void Main(string[] args)
14
15
string[] kernelCode =
@@ -15,12 +19,6 @@ private static unsafe void Main(string[] args)
19
"}"
16
20
};
17
21
18
-
- int Factorial(int n)
- {
- return n <= 1 ? 1 : n * Factorial(n - 1);
22
- }
23
24
// OpenCL related declarations
25
int err;
26
IntPtr platform;
0 commit comments