Fix sample 11_texture_driver for hip-clang (#1370)
이 커밋은 다음에 포함됨:
1 부모
b046ec698b
커밋
c404312ffe
1 파일이 변경됨
+6
-1
@@ -21,7 +21,12 @@ THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "hip/hip_runtime.h"
|
||||
extern texture<float, 2, hipReadModeElementType> tex;
|
||||
#if __HIP__
|
||||
__hip_pinned_shadow__
|
||||
#else
|
||||
extern
|
||||
#endif
|
||||
texture<float, 2, hipReadModeElementType> tex;
|
||||
|
||||
extern "C" __global__ void tex2dKernel(float* outputData, int width, int height) {
|
||||
int x = hipBlockIdx_x * hipBlockDim_x + hipThreadIdx_x;
|
||||
|
||||
새 이슈에서 참조
사용자 차단