diff --git a/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/ConstantTadHelper.h b/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/ConstantTadHelper.h index 8d60bc3cb..55e2cf480 100644 --- a/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/ConstantTadHelper.h +++ b/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/ConstantTadHelper.h @@ -65,7 +65,7 @@ namespace sd { * @return */ FORCEINLINE int cachedEntriesForDevice(int deviceId) { - if (deviceId > _cache.size()) + if ( (size_t)deviceId > _cache.size()) throw std::runtime_error("deviceId > number of actual devices"); return _cache[deviceId].size(); diff --git a/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/ShapeUtils.h b/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/ShapeUtils.h index 7cf0e1ed4..9aaf144cd 100644 --- a/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/ShapeUtils.h +++ b/cavis-native/cavis-native-lib/src/main/cpp/blas/helpers/ShapeUtils.h @@ -216,7 +216,7 @@ namespace sd { ////////////////////////////////////////////////////////////////////////// FORCEINLINE bool ShapeUtils::isPermutNecessary(const std::vector& permut) { - for(int i=0; i