A an array of tests
This commit is contained in:
17
tests_ispcpp/error_5.ispc
Normal file
17
tests_ispcpp/error_5.ispc
Normal file
@@ -0,0 +1,17 @@
|
||||
//@error
|
||||
|
||||
floating$0 mult(floating$0 x, floating$1 y) {
|
||||
return x * y;
|
||||
}
|
||||
|
||||
export void saxpy(uniform int N,
|
||||
uniform floating$0 scale,
|
||||
uniform floating$1 X[],
|
||||
uniform floating$1 Y[],
|
||||
uniform floating$2 result[])
|
||||
{
|
||||
foreach (i = 0 ... N) {
|
||||
floating$ tmp = mult(scale, X[i]) + Y[i];
|
||||
result[i] = tmp;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user