Calling intrinsics from global kernel

[ROCm/hip commit: 61cd2bb399]
This commit is contained in:
Aditya Atluri
2016-03-29 11:17:55 -05:00
parent d0b0cda704
commit ffe185d731
7 changed files with 26 additions and 44 deletions
+9
View File
@@ -0,0 +1,9 @@
#include"hip_runtime.h"
#include<hc.hpp>
#include<grid_launch.h>
__device__ unsigned int test__popc(unsigned int input)
{
return hc::__popcount_u32_b32(input);
}