|
ATLAS Offline Software
|
Go to the documentation of this file.
19 std::ostringstream deviceInfo;
21 ATH_MSG_INFO(
"Will be using device:\n" << deviceInfo.str() );
24 return StatusCode::SUCCESS;
30 static constexpr
float ARRAY_ELEMENT = 3.141592f;
31 std::vector< float > dummyArray(
m_arraySize.value(), ARRAY_ELEMENT );
38 const float expectedResult =
40 static constexpr
float allowedDeviation =
41 std::numeric_limits< float >::epsilon() * 4;
42 for(
float element : dummyArray ) {
43 if( std::abs( element - expectedResult ) > allowedDeviation ) {
45 <<
"The HIP linear transformation failed";
46 return StatusCode::FAILURE;
51 return StatusCode::SUCCESS;
::StatusCode StatusCode
StatusCode definition for legacy code.
void linearTransform(int deviceId, std::vector< float > &data, float a, float b)
Perform a linear transformation on an array.
#define REPORT_MESSAGE(LVL)
Report a message.
void printHipDeviceInfo(int deviceId, std::ostream &out)
Return information about the selected device.