directed tests: Enabled top-level uncategorized tests in HIT

Change-Id: If37cbd00244ebfa0e5bff8362820aa68aaa163f1
This commit is contained in:
Maneesh Gupta committed 2016-09-23 16:15:31 +05:30
1 parent 40694485ca
commit 8e55fc7b42
18 files changed
+110 -3

No files matched your search

+6
View File
@@ -1,3 +1,9 @@
/* HIT_START
* BUILD: %t %s test_common.cpp EXCLUDE_HIP_PLATFORM nvcc
* RUN: %t EXCLUDE_HIP_PLATFORM
* HIT_END
*/
#include "hip_runtime.h"
#include "test_common.h"
+6
View File
@@ -20,6 +20,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t EXCLUDE_HIP_PLATFORM nvcc
* HIT_END
*/
#include <hip_runtime.h>
#include "test_common.h"
+4
View File
@@ -20,6 +20,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* HIT_END
*/
#include <stdio.h>
#include <stdlib.h>
+6
View File
@@ -15,6 +15,12 @@ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
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. */
/* HIT_START
* BUILD: %t %s test_common.cpp NVCC_OPTIONS -std=c++11
* RUN: %t
* HIT_END
*/
#include <iostream>
#include <vector>
#include <stdio.h>
+5
View File
@@ -23,6 +23,11 @@ THE SOFTWARE.
// Through manual inspection of the reported timestamps, can determine if recording a NULL event forces synchronization :
// set
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t --iterations 10
* HIT_END
*/
#include "hip_runtime.h"
#include "test_common.h"
+6
View File
@@ -22,6 +22,12 @@ THE SOFTWARE.
* hipError_t hipDeviceSynchronize();
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t
* HIT_END
*/
#include"test_common.h"
#define _SIZE sizeof(int)*1024*1024
+6
View File
@@ -22,6 +22,12 @@ THE SOFTWARE.
* hipError_t hipGetDevice(int *device);
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t
* HIT_END
*/
#include "test_common.h"
int main()
+6
View File
@@ -17,6 +17,12 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t EXCLUDE_HIP_PLATFORM
* HIT_END
*/
#include "test_common.h"
int main(){
+6
View File
@@ -17,6 +17,12 @@ OUT OF OR INN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t
* HIT_END
*/
#include "test_common.h"
int main()
+9 -3
View File
@@ -21,6 +21,12 @@ THE SOFTWARE.
*/
// Test the device info API extensions for HIP:
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t EXCLUDE_HIP_PLATFORM nvcc
* HIT_END
*/
#include <stdio.h>
#include <iostream>
#include <hip_runtime.h>
@@ -70,15 +76,15 @@ int main(int argc, char *argv[])
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeMemoryClockRate, props.memoryClockRate));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeMemoryBusWidth, props.memoryBusWidth));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeMultiprocessorCount, props.multiProcessorCount));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeIsMultiGpuBoard, props.isMultiGpuBoard));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeIsMultiGpuBoard, props.isMultiGpuBoard));//
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeComputeMode, props.computeMode));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeL2CacheSize, props.l2CacheSize));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeMaxThreadsPerMultiProcessor, props.maxThreadsPerMultiProcessor));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeComputeCapabilityMajor, props.major));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeComputeCapabilityMinor, props.minor));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeComputeCapabilityMinor, props.minor));//
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeConcurrentKernels, props.concurrentKernels));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributePciBusId, props.pciBusID));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributePciDeviceId, props.pciDeviceID));
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributePciDeviceId, props.pciDeviceID));//
CHECK(test_hipDeviceGetAttribute(deviceId, hipDeviceAttributeMaxSharedMemoryPerMultiprocessor, props.maxSharedMemoryPerMultiProcessor));
passed();
+6
View File
@@ -21,6 +21,12 @@ THE SOFTWARE.
*/
// Test the HCC-specific API extensions for HIP:
/* HIT_START
* BUILD: %t %s HCC_OPTIONS --stdlib=libc++
* RUN: %t
* HIT_END
*/
#include <stdio.h>
#include <iostream>
#include <hip_runtime.h>
+6
View File
@@ -20,6 +20,12 @@
THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t
* HIT_END
*/
#include"test_common.h"
#define LEN 1024*1024
+6
View File
@@ -20,6 +20,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t
* HIT_END
*/
#include"test_common.h"
#include<malloc.h>
+6
View File
@@ -17,6 +17,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t
* HIT_END
*/
#include"test_common.h"
#include<malloc.h>
+6
View File
@@ -17,6 +17,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t
* HIT_END
*/
#include"hip_runtime.h"
#include"test_common.h"
#include"hip_runtime_api.h"
+8
View File
@@ -22,6 +22,14 @@ THE SOFTWARE.
// Simple test for memset.
// Also serves as a template for other tests.
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t EXCLUDE_HIP_PLATFORM all
* RUN: %t --memcpyWithPeer EXCLUDE_HIP_PLATFORM all
* RUN: %t --mirrorPeers EXCLUDE_HIP_PLATFORM all
* HIT_END
*/
#include "hip_runtime.h"
#include "test_common.h"
+6
View File
@@ -17,6 +17,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t
* HIT_END
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
+6
View File
@@ -17,6 +17,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* HIT_START
* BUILD: %t %s test_common.cpp
* RUN: %t
* HIT_END
*/
#include<hip_runtime.h>
#include"test_common.h"