diff options
Diffstat (limited to 'tests/projects/ascendc/libs/src/lib.asc')
| -rw-r--r-- | tests/projects/ascendc/libs/src/lib.asc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/projects/ascendc/libs/src/lib.asc b/tests/projects/ascendc/libs/src/lib.asc new file mode 100644 index 000000000..c0e0dad5d --- /dev/null +++ b/tests/projects/ascendc/libs/src/lib.asc @@ -0,0 +1,5 @@ +#include "kernel_operator.h" + +__global__ __vector__ void hello_world() { + AscendC::printf("[Block (%lu/%lu)]: Hello World!!!\n", AscendC::GetBlockIdx(), AscendC::GetBlockNum()); +} |
