mirror of
https://github.com/CNugteren/CLBlast.git
synced 2024-08-26 14:57:02 +02:00
Made a double to float cast explicit for MSVC compatibility (C2397)
This commit is contained in:
parent
d6f1b5fca3
commit
e8d5923d27
|
@ -67,7 +67,7 @@ double getL2ErrorMargin<half>() {
|
||||||
// Error margin: numbers beyond this value are considered equal to inf or NaN
|
// Error margin: numbers beyond this value are considered equal to inf or NaN
|
||||||
template <typename T>
|
template <typename T>
|
||||||
T getAlmostInfNumber() {
|
T getAlmostInfNumber() {
|
||||||
return T{1e35}; // used for correctness testing of TRSV and TRSM routines
|
return static_cast<T>(1e35); // used for correctness testing of TRSV and TRSM routines
|
||||||
}
|
}
|
||||||
|
|
||||||
// Maximum number of test results printed on a single line
|
// Maximum number of test results printed on a single line
|
||||||
|
|
Loading…
Reference in a new issue