Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge release code into development #254

Open
wants to merge 52 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
596297c
Bulk promote till commit '36a6baf8291cc39d485ff21d789a172e3b50f25e' i…
mangupta Jan 6, 2021
e927ace
Merge branch 'amd-staging' into amd-master-next
mangupta Feb 22, 2021
b0bcbf3
Merge branch 'amd-staging' into amd-master-next
mangupta Mar 17, 2021
77493db
Merge branch 'amd-staging' into amd-master-next
mangupta Apr 20, 2021
8337d8a
Merge branch 'amd-staging' into amd-master-next
mangupta May 7, 2021
e881bfc
Merge branch 'amd-staging' into amd-master-next
mangupta May 19, 2021
ea8d41c
Merge branch 'amd-staging' into amd-master-next
mangupta May 25, 2021
b2d6259
Merge branch 'amd-staging' into amd-master-next
mangupta Jun 25, 2021
a985da4
Revert "Merge branch 'amd-staging' into amd-master-next"
mangupta Jun 30, 2021
9c81e3f
Merge branch 'amd-master-next' into amd-staging
mangupta Jul 6, 2021
5e5cf8a
Merge branch 'amd-staging' into amd-master-next
mangupta Jul 6, 2021
c756636
Merge branch 'amd-staging' into amd-master-next
mangupta Jul 20, 2021
119e5b1
Merge branch 'amd-staging' into amd-master-next
mangupta Aug 24, 2021
bb39001
Merge branch 'amd-staging' into amd-master-next
mangupta Sep 1, 2021
eb4c0bb
Merge branch 'amd-staging' into amd-master-next
mangupta Sep 7, 2021
1d1e6ed
Promote till commit '757b01e5348100d9955fec57469210bf6a74983d'
mangupta Sep 15, 2021
8fc127b
Promote till commit 'f6e68140764540bd77390cb6780bef60a4f2695a'
mangupta Nov 20, 2021
a88cd90
Promote till commit 'd22c527d2af2b5a9060e3570a741c46c865332e8'
mangupta Dec 8, 2021
8d47ec9
Promote till commit '3239bb1609a4e0614e19f61bbd7157c4b2f647b0'
mangupta Jan 27, 2022
ab3e1eb
Promote till commit 'a4c96fcf37c1a50ed700d2aad9a8e76cc5a425e2'
mangupta Feb 11, 2022
a549847
Promote till commit '5cb7fe5df736c0291bbbcef0e639c085d7ce5e80'
mangupta Feb 22, 2022
6761a01
Promote till commit '242c1f892fbbe1a3fb7d93e34dd589fff0186432'
mangupta Mar 25, 2022
031c88a
Promote till commit 'abf7a9b1b3b2016edf58a926c6c90d574d2a1e29'
mangupta May 19, 2022
48325ae
Promote till commit 'd5937524408f41c39e745c3daa7f5f3081a76556'
mangupta Jun 21, 2022
c01a81d
Promote till commit '73b187ef79bf2550da85d7b9109c561a1098ed15'
mangupta Jul 5, 2022
43e5aea
Promote till commit '3483144a6807da85b5c984c4269d67e38d2dd759'
mangupta Jul 15, 2022
cd6ef5a
Promote till commit '7cfde0047f7b6f1e97e4fe6ca0ba861383c9358a'
mangupta Jul 22, 2022
b515d06
Promote till commit '3aa38b08b402b636e8c33aa33d81398a10c2f333'
mangupta Jul 29, 2022
beccb5b
Promote till commit 'e1f994220bbeaa1ff3c24cd5639648d3308c93b4'
mangupta Sep 8, 2022
9b49e98
Promote till commit '1c5d61e9026fd6d057951473a2b085cdffb31ba6'
mangupta Sep 20, 2022
204fae5
Promote till commit '2c903087e869b90634ba0e66e856c3d6743aaf81'
mangupta Oct 3, 2022
33248ef
SWDEV-355313 - Move catch tests and samples
gargrahul Oct 12, 2022
7b54540
Promote till commit 'c3ad9dec98d0a9603d326e4b25633a8ca0a679fa'
mangupta Oct 14, 2022
94c31db
Promote till commit 'b26c932366de0be377544f04081d11b558421355'
mangupta Oct 21, 2022
3b2276b
Promote till commit '57ba04d1594c3eefb1fa2900daec61529b46ae9e'
mangupta Nov 9, 2022
8e59556
Promote till commit 'd44e4d00ba4068cd2e2055d48b94644cb9b56628'
mangupta Nov 21, 2022
f9d2bc4
Promote till commit 'f40abcc7cf68df8f805f487b5c586039338f574c'
mangupta Dec 1, 2022
1cd3420
SWDEV-355313 - Merge remote-tracking branch 'hip/amd-master-next' int…
gargrahul Dec 9, 2022
3fde873
SWDEV-355313 - Merge remote-tracking branch 'hip/amd-master-next' int…
gargrahul Dec 12, 2022
928ee2a
Merge 'develop' into 'amd-staging'
Dec 27, 2022
bac5b07
Merge 'develop' into 'amd-staging'
Jan 10, 2023
592af79
Merge 'develop' into 'amd-staging'
Jan 10, 2023
682ad05
Merge 'develop' into 'amd-staging'
Jan 12, 2023
c01bbf8
Merge 'develop' into 'amd-staging'
Jan 16, 2023
d50fb11
Merge 'develop' into 'amd-staging'
Jan 17, 2023
ddc83c8
Promote till commit 'd50fb11890f4fb7120be1e143fe628ddf3afd721'
mangupta Jan 27, 2023
bc9d578
SWDEV-384035 - Link tests to required libraries (#124)
scchan Jan 20, 2023
5e3ed90
SWDEV-383703 - Fix hipDeviceSetSharedMemConfig tests
mangupta Feb 21, 2023
5ecbdaf
SWDEV-366636 - Fix test timing issue
Feb 20, 2023
0e7e528
SWDEV-380913, SWDEV-369555 - Update and enable hipMemAdvise test
satyanveshd Nov 24, 2022
15d0fb7
SWDEV-379572 - Fix hipDeviceSetCacheConfig tests
mangupta Apr 24, 2023
c84c7df
SWDEV-398541/SWDEV-390170 - skip building failing texture tests for C…
agunashe May 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions catch/external/Catch2/cmake/Catch2/Catch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ function(hip_add_exe_to_target)
if(UNIX)
set(_LINKER_LIBS ${_LINKER_LIBS} stdc++fs)
set(_LINKER_LIBS ${_LINKER_LIBS} -ldl)
set(_LINKER_LIBS ${_LINKER_LIBS} pthread)
set(_LINKER_LIBS ${_LINKER_LIBS} rt)
else()
# res files are built resource files using rc files.
# use llvm-rc exe to build the res files
Expand Down
8 changes: 2 additions & 6 deletions catch/unit/device/hipDeviceSetGetCacheConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,12 @@ TEST_CASE("Unit_hipDeviceSetCacheConfig_Positive_Basic") {

const auto cache_config =
GENERATE(from_range(std::begin(kCacheConfigs), std::end(kCacheConfigs)));
#if HT_AMD
HIP_CHECK_ERROR(hipDeviceSetCacheConfig(cache_config), hipErrorNotSupported);
#elif HT_NVIDIA
HIP_CHECK(hipDeviceSetCacheConfig(cache_config));
#endif
}

TEST_CASE("Unit_hipDeviceSetCacheConfig_Negative_Parameters") {
#if HT_AMD
HIP_CHECK_ERROR(hipDeviceSetCacheConfig(static_cast<hipFuncCache_t>(-1)), hipErrorNotSupported);
HIP_CHECK_ERROR(hipDeviceSetCacheConfig(static_cast<hipFuncCache_t>(-1)), hipSuccess);
#elif HT_NVIDIA
HIP_CHECK_ERROR(hipDeviceSetCacheConfig(static_cast<hipFuncCache_t>(-1)), hipErrorInvalidValue);
#endif
Expand Down Expand Up @@ -105,4 +101,4 @@ TEST_CASE("Unit_hipDeviceGetCacheConfig_Positive_Threaded") {

TEST_CASE("Unit_HipDeviceGetCacheConfig_Negative_Parameters") {
HIP_CHECK_ERROR(hipDeviceGetCacheConfig(nullptr), hipErrorInvalidValue);
}
}
8 changes: 2 additions & 6 deletions catch/unit/device/hipDeviceSetGetSharedMemConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,13 @@ TEST_CASE("Unit_hipDeviceSetSharedMemConfig_Positive_Basic") {
HIP_CHECK(hipSetDevice(device));
INFO("Current device is " << device);

#if HT_AMD
HIP_CHECK_ERROR(hipDeviceSetSharedMemConfig(mem_config), hipErrorNotSupported);
#elif HT_NVIDIA
HIP_CHECK(hipDeviceSetSharedMemConfig(mem_config));
#endif
}

TEST_CASE("Unit_hipDeviceSetSharedMemConfig_Negative_Parameters") {
#if HT_AMD
HIP_CHECK_ERROR(hipDeviceSetSharedMemConfig(static_cast<hipSharedMemConfig>(-1)),
hipErrorNotSupported);
hipSuccess);
#elif HT_NVIDIA
HIP_CHECK_ERROR(hipDeviceSetSharedMemConfig(static_cast<hipSharedMemConfig>(-1)),
hipErrorInvalidValue);
Expand Down Expand Up @@ -118,4 +114,4 @@ TEST_CASE("Unit_hipDeviceGetSharedMemConfig_Positive_Threaded") {

TEST_CASE("Unit_hipDeviceGetSharedMemConfig_Negative_Parameters") {
HIP_CHECK_ERROR(hipDeviceGetSharedMemConfig(nullptr), hipErrorInvalidValue);
}
}
2 changes: 0 additions & 2 deletions catch/unit/event/hipEventSynchronize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ TEST_CASE("Unit_hipEventSynchronize_NoEventRecord_Positive") {

// Record the end_event
HIP_CHECK(hipEventRecord(end_event, NULL));
// End event has not been completed
HIP_CHECK_ERROR(hipEventQuery(end_event), hipErrorNotReady);

// When hipEventSynchronized is called on event that has not been recorded,
// the function returns immediately
Expand Down
17 changes: 6 additions & 11 deletions catch/unit/memory/hipMemAdvise.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,6 @@ TEST_CASE("Unit_hipMemAdvise_TstFlags") {
}

TEST_CASE("Unit_hipMemAdvise_NegtveTsts") {
HipTest::HIP_SKIP_TEST("Fixed few issues to match with Nvidia, Skip now to avoid CI failures");
return;
int MangdMem = HmmAttrPrint();
if (MangdMem == 1) {
bool IfTestPassed = true;
Expand All @@ -234,15 +232,6 @@ TEST_CASE("Unit_hipMemAdvise_NegtveTsts") {
std::string str;
HIP_CHECK(hipGetDeviceCount(&NumDevs));
HIP_CHECK(hipMallocManaged(&Hmm, MEM_SIZE * 2, hipMemAttachGlobal));
#if HT_AMD
// Passing invalid value(99) device param
IfTestPassed &= CheckError(hipMemAdvise(Hmm, MEM_SIZE * 2,
hipMemAdviseSetReadMostly, 99), __LINE__);

// Passing invalid value(-12) device param
IfTestPassed &= CheckError(hipMemAdvise(Hmm, MEM_SIZE * 2,
hipMemAdviseSetReadMostly, -12), __LINE__);
#endif
// Passing NULL as first parameter instead of valid pointer to a memory
IfTestPassed &= CheckError(hipMemAdvise(NULL, MEM_SIZE * 2,
hipMemAdviseSetReadMostly, 0), __LINE__);
Expand Down Expand Up @@ -380,6 +369,12 @@ TEST_CASE("Unit_hipMemAdvise_ReadMostly") {
WARN("out value: " << out);
IfTestPassed = false;
}
// hipMemAdvise should succeed for SetReadMostly and UnsetReadMostly
// irrespective of the device
HIP_CHECK(hipMemAdvise(Hmm, MEM_SIZE, hipMemAdviseSetReadMostly, 99));

HIP_CHECK(hipMemAdvise(Hmm, MEM_SIZE, hipMemAdviseUnsetReadMostly, -12));

HIP_CHECK(hipFree(Hmm));
REQUIRE(IfTestPassed);
} else {
Expand Down
4 changes: 4 additions & 0 deletions catch/unit/texture/hipBindTex2DPitch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ THE SOFTWARE.
#include <hip_test_common.hh>
#include <hip_test_checkers.hh>

#if CUDA_VERSION < CUDA_12000

#define SIZE_H 8
#define SIZE_W 12
#define TYPE_t float
Expand Down Expand Up @@ -77,3 +79,5 @@ TEST_CASE("Unit_hipBindTexture2D_Pitch") {
HIP_CHECK(hipFree(devPtrA));
HIP_CHECK(hipFree(devPtrB));
}

#endif // CUDA_VERSION < CUDA_12000
4 changes: 4 additions & 0 deletions catch/unit/texture/hipBindTexRef1DFetch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ THE SOFTWARE.

#include <hip_test_common.hh>

#if CUDA_VERSION < CUDA_12000

#define N 512

texture<float, 1, hipReadModeElementType> tex;
Expand Down Expand Up @@ -79,3 +81,5 @@ TEST_CASE("Unit_hipBindTexture_tex1DfetchVerification") {
HIP_CHECK(hipFree(texBuf));
HIP_CHECK(hipFree(devBuf));
}

#endif // CUDA_VERSION < CUDA_12000
4 changes: 4 additions & 0 deletions catch/unit/texture/hipNormalizedFloatValueTex.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ THE SOFTWARE.

#include <hip_test_common.hh>

#if CUDA_VERSION < CUDA_12000

#define SIZE 10
#define EPSILON 0.00001
#define THRESH_HOLD 0.01 // For filter mode
Expand Down Expand Up @@ -159,3 +161,5 @@ TEST_CASE("Unit_hipNormalizedFloatValueTex_CheckModes") {
runTest_hipTextureFilterMode<hipFilterModeLinear>();
}
}

#endif // CUDA_VERSION < CUDA_12000
4 changes: 4 additions & 0 deletions catch/unit/texture/hipSimpleTexture2DLayered.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ THE SOFTWARE.
#include <hip_test_common.hh>
#include <hip_test_checkers.hh>

#if CUDA_VERSION < CUDA_12000

typedef float T;

// Texture reference for 2D Layered texture
Expand Down Expand Up @@ -107,3 +109,5 @@ TEST_CASE("Unit_hipSimpleTexture2DLayered_Check") {
free(hData);
free(hOutputData);
}

#endif // CUDA_VERSION < CUDA_12000
4 changes: 4 additions & 0 deletions catch/unit/texture/hipSimpleTexture3D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ THE SOFTWARE.
#include <hip_test_common.hh>
#include <hip_test_checkers.hh>

#if CUDA_VERSION < CUDA_12000

// Texture reference for 3D texture
texture<float, hipTextureType3D, hipReadModeElementType> texf;
texture<int, hipTextureType3D, hipReadModeElementType> texi;
Expand Down Expand Up @@ -119,3 +121,5 @@ TEST_CASE("Unit_hipSimpleTexture3D_Check_DataTypes") {
runSimpleTexture3D_Check<char>(i, i+1, i, &texc);
}
}

#endif // CUDA_VERSION < CUDA_12000
4 changes: 4 additions & 0 deletions catch/unit/texture/hipTextureRef2D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ THE SOFTWARE.

#include <hip_test_common.hh>

#if CUDA_VERSION < CUDA_12000

texture<float, 2, hipReadModeElementType> tex;

__global__ void tex2DKernel(float* outputData, int width) {
Expand Down Expand Up @@ -90,3 +92,5 @@ TEST_CASE("Unit_hipTextureRef2D_Check") {
HIP_CHECK(hipFree(dData));
HIP_CHECK(hipFreeArray(hipArray));
}

#endif // CUDA_VERSION < CUDA_12000