This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__kernel void MyAdd_col(const double __global *A, | |
const double __global *B, | |
double __global *C, | |
unsigned long int N) | |
{ | |
unsigned long int i = get_global_id(0); | |
for(unsigned long int j = 0; j < N; j++) { | |
if (j % 2 == 0) | |
get(C, N, i, j) = get(A, N, i, j) + get(A, N, i, j); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs | |
index 6c93dbc..c2b9e33 100644 | |
--- a/src/libsyntax/ext/base.rs | |
+++ b/src/libsyntax/ext/base.rs | |
@@ -30,11 +30,14 @@ enum syntax_extension { | |
fn syntax_expander_table() -> hashmap<str, syntax_extension> { | |
fn builtin(f: syntax_expander_) -> syntax_extension | |
{normal({expander: f, span: none})} | |
+ fn builtin_tt(f: syntax_expander_tt_) -> syntax_extension | |
+ {normal_tt({expander: f, span: none})} |