Revert "added full data type support for __ldg"
This reverts commit ba59ea87ab.
Conflicts:
include/hcc_detail/hip_ldg.h
This commit is contained in:
+6
-143
@@ -149,151 +149,14 @@ int main() {
|
||||
cout << " System major " << devProp.major << endl;
|
||||
cout << " agent prop name " << devProp.name << endl;
|
||||
|
||||
int errors;
|
||||
|
||||
errors = dataTypesRun<char>() &
|
||||
dataTypesRun<char1>() &
|
||||
dataTypesRun<char2>() &
|
||||
dataTypesRun<char3>() &
|
||||
dataTypesRun<char4>() &
|
||||
dataTypesRun<signed char>() &
|
||||
dataTypesRun<unsigned char>();
|
||||
|
||||
if(errors == 1){
|
||||
errors = 0;
|
||||
}else{
|
||||
std::cout<<"Failed Char"<<std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
errors = dataTypesRun<short>() &
|
||||
dataTypesRun<short1>() &
|
||||
dataTypesRun<short2>() &
|
||||
dataTypesRun<short3>() &
|
||||
dataTypesRun<short4>() &
|
||||
dataTypesRun<unsigned short>();
|
||||
|
||||
if(errors == 1){
|
||||
errors = 0;
|
||||
}else{
|
||||
std::cout<<"Failed Short"<<std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
errors = dataTypesRun<int>() &
|
||||
dataTypesRun<int1>() &
|
||||
dataTypesRun<int2>() &
|
||||
dataTypesRun<int3>() &
|
||||
dataTypesRun<int4>() &
|
||||
dataTypesRun<unsigned int>();
|
||||
|
||||
if(errors == 1){
|
||||
errors = 0;
|
||||
}else{
|
||||
std::cout<<"Failed Int"<<std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
errors = dataTypesRun<long>() &
|
||||
dataTypesRun<long1>() &
|
||||
dataTypesRun<long2>() &
|
||||
dataTypesRun<long3>() &
|
||||
dataTypesRun<long4>() &
|
||||
dataTypesRun<unsigned long>();
|
||||
|
||||
if(errors == 1){
|
||||
errors = 0;
|
||||
}else{
|
||||
std::cout<<"Failed Long"<<std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
errors = dataTypesRun<long long>() &
|
||||
dataTypesRun<longlong1>() &
|
||||
dataTypesRun<longlong2>() &
|
||||
dataTypesRun<longlong3>() &
|
||||
dataTypesRun<longlong4>() &
|
||||
dataTypesRun<unsigned long long>();
|
||||
|
||||
if(errors == 1){
|
||||
errors = 0;
|
||||
}else{
|
||||
std::cout<<"Failed Long Long"<<std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
errors = dataTypesRun<uchar1>() &
|
||||
dataTypesRun<uchar2>() &
|
||||
dataTypesRun<uchar3>() &
|
||||
dataTypesRun<uchar4>();
|
||||
|
||||
if(errors == 1){
|
||||
errors = 0;
|
||||
}else{
|
||||
std::cout<<"Failed Unsigned Char"<<std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
errors = dataTypesRun<ushort1>() &
|
||||
dataTypesRun<ushort2>() &
|
||||
dataTypesRun<ushort3>() &
|
||||
dataTypesRun<ushort4>();
|
||||
|
||||
if(errors == 1){
|
||||
errors = 0;
|
||||
}else{
|
||||
std::cout<<"Failed Unsigned Short"<<std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
errors = dataTypesRun<uint1>() &
|
||||
dataTypesRun<uint2>() &
|
||||
dataTypesRun<uint3>() &
|
||||
dataTypesRun<uint4>();
|
||||
|
||||
if(errors == 1){
|
||||
errors = 0;
|
||||
}else{
|
||||
std::cout<<"Failed Unsigned Int"<<std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
errors = dataTypesRun<ulonglong1>() &
|
||||
dataTypesRun<ulonglong2>() &
|
||||
dataTypesRun<ulonglong3>() &
|
||||
dataTypesRun<ulonglong4>();
|
||||
|
||||
if(errors == 1){
|
||||
errors = 0;
|
||||
}else{
|
||||
std::cout<<"Failed Unsigned Long Long"<<std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
errors = dataTypesRun<float>() &
|
||||
dataTypesRun<float1>() &
|
||||
dataTypesRun<float2>() &
|
||||
dataTypesRun<float3>() &
|
||||
dataTypesRun<float4>();
|
||||
|
||||
if(errors == 1){
|
||||
errors = 0;
|
||||
}else{
|
||||
std::cout<<"Failed Float"<<std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
errors = dataTypesRun<double>() &
|
||||
dataTypesRun<double1>() &
|
||||
dataTypesRun<double2>() &
|
||||
dataTypesRun<double3>() &
|
||||
dataTypesRun<double4>();
|
||||
|
||||
int errors = dataTypesRun<char>() &
|
||||
dataTypesRun<signed char>() &
|
||||
dataTypesRun<short>() &
|
||||
dataTypesRun<int>();
|
||||
//hipResetDefaultAccelerator();
|
||||
if(errors == 1){
|
||||
passed();
|
||||
}else{
|
||||
std::cout<<"Failed Float"<<std::endl;
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user