Update hipGetAlgntoffset2D.cpp
Removed bool variable 'testResult' from global scope and confined it to the function.
Ta zmiana jest zawarta w:
1 rodzic
fa36c49c81
złożenie
feaa30076e
Plik 1 zmieniony
+2
-4
@@ -35,12 +35,10 @@ using namespace std;
|
||||
|
||||
texture<int, hipTextureType2D,hipReadModeElementType> tex;
|
||||
|
||||
bool testResult = true;
|
||||
|
||||
bool runTest(void);
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
testResult=runTest();
|
||||
bool testResult=runTest();
|
||||
|
||||
if (testResult) {
|
||||
passed();
|
||||
@@ -81,5 +79,5 @@ HIPCHECK(hipGetTextureAlignmentOffset(&offset,&tex));
|
||||
|
||||
HIPCHECK(hipUnbindTexture(&tex));
|
||||
HIPCHECK(hipFreeArray(hipArray));
|
||||
return testResult;
|
||||
return true;
|
||||
}
|
||||
Reference in new issue
Zablokuj użytkownika