From 4054f5d3a358c047ede0838f6539a5c4c0aea6dd Mon Sep 17 00:00:00 2001 From: dlangbe Date: Wed, 13 Nov 2024 22:15:18 +0000 Subject: [PATCH] modfied samples to use ac --- samples/01_contraction/simple_bilinear_contraction.hpp | 4 ++-- samples/01_contraction/simple_scale_contraction.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/01_contraction/simple_bilinear_contraction.hpp b/samples/01_contraction/simple_bilinear_contraction.hpp index 95c5d0f6..87e9b209 100644 --- a/samples/01_contraction/simple_bilinear_contraction.hpp +++ b/samples/01_contraction/simple_bilinear_contraction.hpp @@ -2,7 +2,7 @@ * * MIT License * - * Copyright (C) 2023-2024 Advanced Micro Devices, Inc. All rights reserved. + * Copyright (C) 2023-2025 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 @@ -240,7 +240,7 @@ int bilinearContractionSample(void* alpha, void* beta) ***************************/ hiptensorContractionFind_t find; - CHECK_HIPTENSOR_ERROR(hiptensorInitContractionFind(handle, &find, HIPTENSOR_ALGO_DEFAULT)); + CHECK_HIPTENSOR_ERROR(hiptensorInitContractionFind(handle, &find, HIPTENSOR_ALGO_ACTOR_CRITIC)); /********************** * Query workspace diff --git a/samples/01_contraction/simple_scale_contraction.hpp b/samples/01_contraction/simple_scale_contraction.hpp index 5db4598d..e4ec811c 100644 --- a/samples/01_contraction/simple_scale_contraction.hpp +++ b/samples/01_contraction/simple_scale_contraction.hpp @@ -2,7 +2,7 @@ * * MIT License * - * Copyright (C) 2023-2024 Advanced Micro Devices, Inc. All rights reserved. + * Copyright (C) 2023-2025 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 @@ -232,7 +232,7 @@ int scaleContractionSample(void* alpha) ***************************/ hiptensorContractionFind_t find; - CHECK_HIPTENSOR_ERROR(hiptensorInitContractionFind(handle, &find, HIPTENSOR_ALGO_DEFAULT)); + CHECK_HIPTENSOR_ERROR(hiptensorInitContractionFind(handle, &find, HIPTENSOR_ALGO_ACTOR_CRITIC)); /********************** * Query workspace