- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I try to debug some opencl kernel in Visual Studio 2013. After entering in kernel debugger show me local variables, but only before row with union operator (#11). Once debug go to row 11 a "Locals" window is cleared. I think this is a bug. (sorry for my english)
__kernel void randn2(float sigma, unsigned int user_k, __global float4* out)
{
philox4x32_key_t k = {{get_global_id(0), get_global_id(1)}};
philox4x32_ctr_t c = {{ 0, 0xf00dcafe, 0xdeadbeef, user_k }};
float4 buf={0, 0, 0, 0};
float2 cos2;
union {
philox4x32_ctr_t c;
uint4 ui;
float4 f;
} u;
u.c = philox4x32_R(7,c, k);
u.f = convert_float4(u.ui) / UINT_MAX;
링크가 복사됨
3 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Thanks Alex! I agree that this looks like a bug. I've replicated the behavior you've described and reported to the development team.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Sorry for the delay in getting back to you. There are several issues with unions, including support in the kernel builder. We're looking into what can be done. There are many things that need to be prioritized, and your feedback can help. How critical is union support for your application?