880119d3a3
The code is a snapshot up to this commit around July 31 2018.
commit b00fadff36a3
Author: xinhui pan <xinhui.pan@amd.com>
Date: Mon Jul 30 09:53:03 2018 +0800
kfdtest: skip MMapLarge test on apu
Change-Id: I40e9a5a18e5c8f075e5290bb80532f1a3f689058
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
[ROCm/ROCR-Runtime commit: 6df62c78b8]
66 lines
2.4 KiB
C++
66 lines
2.4 KiB
C++
/*
|
|
* Copyright (C) 2014-2018 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 to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
|
*
|
|
*/
|
|
|
|
#ifndef __KFD_TEST_FLAGS__H__
|
|
#define __KFD_TEST_FLAGS__H__
|
|
|
|
extern unsigned int g_TestRunProfile;
|
|
extern unsigned int g_TestENVCaps;
|
|
extern unsigned int g_TestTimeOut;
|
|
extern int g_TestNodeId;
|
|
extern int g_TestDstNodeId;
|
|
extern bool g_IsChildProcess;
|
|
extern unsigned int g_TestGPUFamilyId;
|
|
|
|
// each test should call TEST_START with the test custome profile and HW scheduling
|
|
|
|
enum TESTPROFILE{
|
|
TESTPROFILE_DEV = 0x1,
|
|
TESTPROFILE_PROMO = 0x2,
|
|
// 0x4 - 0x8000 - unsed flags
|
|
// can add any flag that will mark only part of the tests to run
|
|
TESTPROFILE_RUNALL = 0xFFFF
|
|
};
|
|
|
|
enum ENVCAPS{
|
|
ENVCAPS_NOADDEDCAPS = 0x0,
|
|
ENVCAPS_HWSCHEDULING = 0x1,
|
|
ENVCAPS_16BITPASID = 0x2,
|
|
ENVCAPS_32BITLINUX = 0x4,
|
|
ENVCAPS_64BITLINUX = 0x8
|
|
// 0x8 - 0x8000 - unsed flags
|
|
// can add any flag that will mark specific hw limitation \ capability
|
|
};
|
|
|
|
enum KfdFamilyId {
|
|
FAMILY_UNKNOWN = 0,
|
|
FAMILY_CI, // Sea Islands: Hawaii (P), Maui (P), Bonaire (M)
|
|
FAMILY_KV, // Fusion Kaveri: Spectre, Spooky; Fusion Kabini: Kalindi
|
|
FAMILY_VI, // Volcanic Islands: Iceland (V), Tonga (M)
|
|
FAMILY_CZ, // Carrizo, Nolan, Amur
|
|
FAMILY_AI, // Arctic Islands
|
|
FAMILY_RV, // Raven
|
|
};
|
|
|
|
#endif // __KFD_TEST_FLAGS__H__
|