Update hipGetAlgntoffset2D.cpp

Removed unwanted space.

[ROCm/clr commit: 9f8d41df13]
Este commit está contenido en:
lthakur
2018-07-17 13:37:08 +05:30
cometido por GitHub
padre bf68482ed9
commit 5ea8ae2ea6
@@ -32,7 +32,6 @@ using namespace std;
#define R 8 //rows, height
#define C 8 //columns, width
texture<int, hipTextureType2D,hipReadModeElementType> tex;
bool runTest(void);
@@ -47,10 +46,8 @@ int main(int argc, char** argv) {
}
}
bool runTest()
{
int val[R][C],i,j;
size_t offset;
@@ -59,10 +56,7 @@ for(i=0;i<R;i++)
{
val[i][j]=(i+1)*(j+1);
}
hipChannelFormatDesc chan_desc=hipCreateChannelDesc(32,0,0,0,hipChannelFormatKindSigned);
hipArray *hipArray;
HIPCHECK(hipMallocArray(&hipArray, &chan_desc,C,R,0));
@@ -74,9 +68,7 @@ tex.filterMode=hipFilterModePoint;
tex.normalized=0;
HIPCHECK(hipBindTextureToArray(&tex, hipArray, &chan_desc));
HIPCHECK(hipGetTextureAlignmentOffset(&offset,&tex));
HIPCHECK(hipUnbindTexture(&tex));
HIPCHECK(hipFreeArray(hipArray));
return true;