Add #define with target vector width in emitted headers
This commit is contained in:
@@ -1306,6 +1306,7 @@ Module::writeHeader(const char *fn) {
|
|||||||
default:
|
default:
|
||||||
FATAL("Unhandled target in header emission");
|
FATAL("Unhandled target in header emission");
|
||||||
}
|
}
|
||||||
|
fprintf(f, "#define ISPC_TARGET_VECTOR_WIDTH %d\n", g->target.vectorWidth);
|
||||||
|
|
||||||
fprintf(f, "#ifdef __cplusplus\nnamespace ispc {\n#endif // __cplusplus\n\n");
|
fprintf(f, "#ifdef __cplusplus\nnamespace ispc {\n#endif // __cplusplus\n\n");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user