Project
Loading...
Searching...
No Matches
testGPUsortHIP.hip.cxx File Reference
#include <iostream>
#include <cstring>
#include <hip/hip_runtime.h>
#include <boost/test/unit_test.hpp>
#include "GPUCommonAlgorithm.h"

Go to the source code of this file.

Classes

struct  TestEnvironment
 

Macros

#define GPUCA_GPUTYPE_VEGA
 
#define BOOST_TEST_MODULE   Test GPUCommonAlgorithm Sorting HIP
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

hipError_t hipCheckError (hipError_t hipErrorCode)
 
void hipCheckErrorFatal (hipError_t hipErrorCode)
 
template<typename T >
void testAlmostEqualArray (T *correct, T *testing, size_t size)
 
__global__ void sortInThread (float *data, size_t dataLength)
 
__global__ void sortInThreadWithOperator (float *data, size_t dataLength)
 
__global__ void sortInBlock (float *data, size_t dataLength)
 
__global__ void sortInBlockWithOperator (float *data, size_t dataLength)
 
 BOOST_FIXTURE_TEST_CASE (GPUsortThreadHIP, TestEnvironment)
 
 BOOST_FIXTURE_TEST_CASE (GPUsortThreadOperatorHIP, TestEnvironment)
 
 BOOST_FIXTURE_TEST_CASE (GPUsortBlockHIP, TestEnvironment)
 
 BOOST_FIXTURE_TEST_CASE (GPUsortBlockOperatorHIP, TestEnvironment)
 

Detailed Description

Author
Michael Lettrich

Definition in file testGPUsortHIP.hip.cxx.

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 19 of file testGPUsortHIP.hip.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 18 of file testGPUsortHIP.hip.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test GPUCommonAlgorithm Sorting HIP

Definition at line 17 of file testGPUsortHIP.hip.cxx.

◆ GPUCA_GPUTYPE_VEGA

#define GPUCA_GPUTYPE_VEGA

Definition at line 15 of file testGPUsortHIP.hip.cxx.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

BOOST_FIXTURE_TEST_CASE ( GPUsortBlockHIP  ,
TestEnvironment   
)

Definition at line 138 of file testGPUsortHIP.hip.cxx.

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

BOOST_FIXTURE_TEST_CASE ( GPUsortBlockOperatorHIP  ,
TestEnvironment   
)

Definition at line 146 of file testGPUsortHIP.hip.cxx.

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

BOOST_FIXTURE_TEST_CASE ( GPUsortThreadHIP  ,
TestEnvironment   
)

Definition at line 118 of file testGPUsortHIP.hip.cxx.

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

BOOST_FIXTURE_TEST_CASE ( GPUsortThreadOperatorHIP  ,
TestEnvironment   
)

Definition at line 126 of file testGPUsortHIP.hip.cxx.

◆ hipCheckError()

hipError_t hipCheckError ( hipError_t  hipErrorCode)

Definition at line 33 of file testGPUsortHIP.hip.cxx.

◆ hipCheckErrorFatal()

void hipCheckErrorFatal ( hipError_t  hipErrorCode)

Definition at line 41 of file testGPUsortHIP.hip.cxx.

◆ sortInBlock()

__global__ void sortInBlock ( float *  data,
size_t  dataLength 
)

Definition at line 105 of file testGPUsortHIP.hip.cxx.

◆ sortInBlockWithOperator()

__global__ void sortInBlockWithOperator ( float *  data,
size_t  dataLength 
)

Definition at line 110 of file testGPUsortHIP.hip.cxx.

◆ sortInThread()

__global__ void sortInThread ( float *  data,
size_t  dataLength 
)

Definition at line 87 of file testGPUsortHIP.hip.cxx.

◆ sortInThreadWithOperator()

__global__ void sortInThreadWithOperator ( float *  data,
size_t  dataLength 
)

Definition at line 95 of file testGPUsortHIP.hip.cxx.

◆ testAlmostEqualArray()

template<typename T >
void testAlmostEqualArray ( T *  correct,
T *  testing,
size_t  size 
)

Definition at line 74 of file testGPUsortHIP.hip.cxx.