hcc icon indicating copy to clipboard operation
hcc copied to clipboard

hc.hpp contains many kernel functions which cannot be used in kernel

Open misos1 opened this issue 6 years ago • 0 comments
trafficstars

For example these:

extern "C" unsigned int __bitalign_b32(unsigned int src0, unsigned int src1, unsigned int src2) __HC__;
extern "C" unsigned int __bytealign_b32(unsigned int src0, unsigned int src1, unsigned int src2) __HC__;
extern "C" unsigned int __bitmask_b32(unsigned int src0, unsigned int src1) __HC__;
extern "C" int __bitextract_s32(int src0, unsigned int src1, unsigned int src2) __HC__;
extern "C" unsigned int __unpacklo_u8x4(unsigned int src0, unsigned int src1) __HC__;

Probably almost all which are only defined without body.

They produce compilation errors error: relocation R_AMDGPU_REL32_HI cannot be used against symbol __bitalign_b32; recompile with -fPIC".

misos1 avatar Nov 25 '18 23:11 misos1