diff --git a/projects/hip-tests/catch/unit/memory/hipArrayCommon.hh b/projects/hip-tests/catch/unit/memory/hipArrayCommon.hh index 52ade2ea21..4d41700605 100644 --- a/projects/hip-tests/catch/unit/memory/hipArrayCommon.hh +++ b/projects/hip-tests/catch/unit/memory/hipArrayCommon.hh @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -22,6 +22,8 @@ THE SOFTWARE. #pragma once +#pragma clang diagnostic ignored "-Wunused-parameter" + #include constexpr size_t BlockSize = 16; diff --git a/projects/hip-tests/catch/unit/surface/hipSurfaceObj1D.cc b/projects/hip-tests/catch/unit/surface/hipSurfaceObj1D.cc index e8a59f30a0..c3a3536ec5 100644 --- a/projects/hip-tests/catch/unit/surface/hipSurfaceObj1D.cc +++ b/projects/hip-tests/catch/unit/surface/hipSurfaceObj1D.cc @@ -19,7 +19,10 @@ THE SOFTWARE. #include #include #include + #pragma clang diagnostic ignored "-Wunused-variable" +#pragma clang diagnostic ignored "-Wunused-parameter" + template __global__ void surf1DKernelR(hipSurfaceObject_t surfaceObject, diff --git a/projects/hip-tests/catch/unit/surface/hipSurfaceObj2D.cc b/projects/hip-tests/catch/unit/surface/hipSurfaceObj2D.cc index 725f949a20..2adbe041a7 100644 --- a/projects/hip-tests/catch/unit/surface/hipSurfaceObj2D.cc +++ b/projects/hip-tests/catch/unit/surface/hipSurfaceObj2D.cc @@ -19,7 +19,10 @@ THE SOFTWARE. #include #include #include + #pragma clang diagnostic ignored "-Wunused-variable" +#pragma clang diagnostic ignored "-Wunused-parameter" + #define LOG_DATA 0 template diff --git a/projects/hip-tests/catch/unit/surface/hipSurfaceObj3D.cc b/projects/hip-tests/catch/unit/surface/hipSurfaceObj3D.cc index cb62de3524..1c2e6c0963 100644 --- a/projects/hip-tests/catch/unit/surface/hipSurfaceObj3D.cc +++ b/projects/hip-tests/catch/unit/surface/hipSurfaceObj3D.cc @@ -19,7 +19,10 @@ THE SOFTWARE. #include #include #include + #pragma clang diagnostic ignored "-Wunused-variable" +#pragma clang diagnostic ignored "-Wunused-parameter" + template __global__ void surf3DKernelR(hipSurfaceObject_t surfaceObject, diff --git a/projects/hip-tests/catch/unit/texture/hipBindTex2DPitch.cc b/projects/hip-tests/catch/unit/texture/hipBindTex2DPitch.cc index 26e073ed83..3d01d2429d 100644 --- a/projects/hip-tests/catch/unit/texture/hipBindTex2DPitch.cc +++ b/projects/hip-tests/catch/unit/texture/hipBindTex2DPitch.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #include diff --git a/projects/hip-tests/catch/unit/texture/hipBindTexRef1DFetch.cc b/projects/hip-tests/catch/unit/texture/hipBindTexRef1DFetch.cc index a223d27711..9de21ecbf7 100644 --- a/projects/hip-tests/catch/unit/texture/hipBindTexRef1DFetch.cc +++ b/projects/hip-tests/catch/unit/texture/hipBindTexRef1DFetch.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #if CUDA_VERSION < CUDA_12000 diff --git a/projects/hip-tests/catch/unit/texture/hipBindTextureToMipmappedArray.cc b/projects/hip-tests/catch/unit/texture/hipBindTextureToMipmappedArray.cc index 670e4f75eb..9eafef9190 100644 --- a/projects/hip-tests/catch/unit/texture/hipBindTextureToMipmappedArray.cc +++ b/projects/hip-tests/catch/unit/texture/hipBindTextureToMipmappedArray.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include /** diff --git a/projects/hip-tests/catch/unit/texture/hipNormalizedFloatValueTex.cc b/projects/hip-tests/catch/unit/texture/hipNormalizedFloatValueTex.cc index 3bc1d8ca7d..2ae5472c71 100644 --- a/projects/hip-tests/catch/unit/texture/hipNormalizedFloatValueTex.cc +++ b/projects/hip-tests/catch/unit/texture/hipNormalizedFloatValueTex.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include diff --git a/projects/hip-tests/catch/unit/texture/hipSimpleTexture2DLayered.cc b/projects/hip-tests/catch/unit/texture/hipSimpleTexture2DLayered.cc index 73d2167d5c..3473aa6d95 100644 --- a/projects/hip-tests/catch/unit/texture/hipSimpleTexture2DLayered.cc +++ b/projects/hip-tests/catch/unit/texture/hipSimpleTexture2DLayered.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #include diff --git a/projects/hip-tests/catch/unit/texture/hipSimpleTexture3D.cc b/projects/hip-tests/catch/unit/texture/hipSimpleTexture3D.cc index c17d218a53..1b5940d6c9 100644 --- a/projects/hip-tests/catch/unit/texture/hipSimpleTexture3D.cc +++ b/projects/hip-tests/catch/unit/texture/hipSimpleTexture3D.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #include diff --git a/projects/hip-tests/catch/unit/texture/hipTex1DFetchCheckModes.cc b/projects/hip-tests/catch/unit/texture/hipTex1DFetchCheckModes.cc index 158777e42b..0954e770f5 100644 --- a/projects/hip-tests/catch/unit/texture/hipTex1DFetchCheckModes.cc +++ b/projects/hip-tests/catch/unit/texture/hipTex1DFetchCheckModes.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #define N 16 diff --git a/projects/hip-tests/catch/unit/texture/hipTexObjPitch.cc b/projects/hip-tests/catch/unit/texture/hipTexObjPitch.cc index 24f9c21aeb..bfd5b4c563 100644 --- a/projects/hip-tests/catch/unit/texture/hipTexObjPitch.cc +++ b/projects/hip-tests/catch/unit/texture/hipTexObjPitch.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #include diff --git a/projects/hip-tests/catch/unit/texture/hipTextureMipmapObj2D.cc b/projects/hip-tests/catch/unit/texture/hipTextureMipmapObj2D.cc index 72b6d196a0..35f4557f42 100644 --- a/projects/hip-tests/catch/unit/texture/hipTextureMipmapObj2D.cc +++ b/projects/hip-tests/catch/unit/texture/hipTextureMipmapObj2D.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include /** diff --git a/projects/hip-tests/catch/unit/texture/hipTextureObj1DCheckModes.cc b/projects/hip-tests/catch/unit/texture/hipTextureObj1DCheckModes.cc index a3e8e10f5e..43e0405bc1 100644 --- a/projects/hip-tests/catch/unit/texture/hipTextureObj1DCheckModes.cc +++ b/projects/hip-tests/catch/unit/texture/hipTextureObj1DCheckModes.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #include #include diff --git a/projects/hip-tests/catch/unit/texture/hipTextureObj1DCheckSRGBModes.cc b/projects/hip-tests/catch/unit/texture/hipTextureObj1DCheckSRGBModes.cc index 848a25bc89..499f51fd2f 100644 --- a/projects/hip-tests/catch/unit/texture/hipTextureObj1DCheckSRGBModes.cc +++ b/projects/hip-tests/catch/unit/texture/hipTextureObj1DCheckSRGBModes.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #include #include diff --git a/projects/hip-tests/catch/unit/texture/hipTextureObj1DFetch.cc b/projects/hip-tests/catch/unit/texture/hipTextureObj1DFetch.cc index 62c6c2c5c1..c267bec29d 100644 --- a/projects/hip-tests/catch/unit/texture/hipTextureObj1DFetch.cc +++ b/projects/hip-tests/catch/unit/texture/hipTextureObj1DFetch.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #define N 512 diff --git a/projects/hip-tests/catch/unit/texture/hipTextureObj2D.cc b/projects/hip-tests/catch/unit/texture/hipTextureObj2D.cc index ee4e895b32..7592b87a22 100644 --- a/projects/hip-tests/catch/unit/texture/hipTextureObj2D.cc +++ b/projects/hip-tests/catch/unit/texture/hipTextureObj2D.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include /** diff --git a/projects/hip-tests/catch/unit/texture/hipTextureObj2DCheckModes.cc b/projects/hip-tests/catch/unit/texture/hipTextureObj2DCheckModes.cc index 0e95023dc0..47f90ca04a 100644 --- a/projects/hip-tests/catch/unit/texture/hipTextureObj2DCheckModes.cc +++ b/projects/hip-tests/catch/unit/texture/hipTextureObj2DCheckModes.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #include #include diff --git a/projects/hip-tests/catch/unit/texture/hipTextureObj2DCheckSRGBModes.cc b/projects/hip-tests/catch/unit/texture/hipTextureObj2DCheckSRGBModes.cc index 73df5dd16b..a641c4c057 100644 --- a/projects/hip-tests/catch/unit/texture/hipTextureObj2DCheckSRGBModes.cc +++ b/projects/hip-tests/catch/unit/texture/hipTextureObj2DCheckSRGBModes.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #include #include diff --git a/projects/hip-tests/catch/unit/texture/hipTextureObj3DCheckModes.cc b/projects/hip-tests/catch/unit/texture/hipTextureObj3DCheckModes.cc index 708caf1201..5746d5ae53 100644 --- a/projects/hip-tests/catch/unit/texture/hipTextureObj3DCheckModes.cc +++ b/projects/hip-tests/catch/unit/texture/hipTextureObj3DCheckModes.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include #include #include diff --git a/projects/hip-tests/catch/unit/texture/hipTextureObjFetchVector.cc b/projects/hip-tests/catch/unit/texture/hipTextureObjFetchVector.cc index 7aa2fc8b37..b12f0e7da0 100644 --- a/projects/hip-tests/catch/unit/texture/hipTextureObjFetchVector.cc +++ b/projects/hip-tests/catch/unit/texture/hipTextureObjFetchVector.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -21,7 +21,10 @@ THE SOFTWARE. #include #include #include + #pragma clang diagnostic ignored "-Wunused-variable" +#pragma clang diagnostic ignored "-Wunused-parameter" + template __global__ void tex1dKernelFetch(T *val, hipTextureObject_t obj, int N) { #if !defined(__HIP_NO_IMAGE_SUPPORT) || !__HIP_NO_IMAGE_SUPPORT diff --git a/projects/hip-tests/catch/unit/texture/hipTextureRef2D.cc b/projects/hip-tests/catch/unit/texture/hipTextureRef2D.cc index 9ecaab9365..fec47f0a73 100644 --- a/projects/hip-tests/catch/unit/texture/hipTextureRef2D.cc +++ b/projects/hip-tests/catch/unit/texture/hipTextureRef2D.cc @@ -1,5 +1,5 @@ /* -Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights @@ -17,6 +17,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#pragma clang diagnostic ignored "-Wunused-parameter" #include