QUDA  v1.1.0
A library for QCD on GPUs
Classes | Namespaces | Functions | Variables
contract_test.cpp File Reference
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <string.h>
#include <util_quda.h>
#include <host_utils.h>
#include <command_line_params.h>
#include <dslash_reference.h>
#include <contract_reference.h>
#include "misc.h"
#include <gtest/gtest.h>
#include <quda.h>
#include <color_spinor_field.h>

Go to the source code of this file.

Classes

class  ContractionTest
 

Namespaces

 quda
 

Functions

void quda::setTransferGPU (bool)
 
void display_test_info ()
 
int main (int argc, char **argv)
 
int test (int contractionType, int Prec)
 
 TEST_P (ContractionTest, verify)
 
std::string getContractName (testing::TestParamInfo<::testing::tuple< int, int >> param)
 
 INSTANTIATE_TEST_SUITE_P (QUDA, ContractionTest, Combine(Range(0, 2), Range(0, NcontractType)), getContractName)
 

Variables

constexpr int NcontractType = 2
 
const char * names [] = {"OpenSpin", "DegrandRossi"}
 
const char * prec_str [] = {"single", "double"}
 

Function Documentation

◆ display_test_info()

void display_test_info ( )

Definition at line 33 of file contract_test.cpp.

◆ getContractName()

std::string getContractName ( testing::TestParamInfo<::testing::tuple< int, int >>  param)

Definition at line 203 of file contract_test.cpp.

◆ INSTANTIATE_TEST_SUITE_P()

INSTANTIATE_TEST_SUITE_P ( QUDA  ,
ContractionTest  ,
Combine(Range(0, 2), Range(0, NcontractType))  ,
getContractName   
)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 48 of file contract_test.cpp.

◆ test()

int test ( int  contractionType,
int  Prec 
)

Definition at line 106 of file contract_test.cpp.

◆ TEST_P()

TEST_P ( ContractionTest  ,
verify   
)

Definition at line 194 of file contract_test.cpp.

Variable Documentation

◆ names

const char* names[] = {"OpenSpin", "DegrandRossi"}

Definition at line 25 of file contract_test.cpp.

◆ NcontractType

constexpr int NcontractType = 2
constexpr

Definition at line 22 of file contract_test.cpp.

◆ prec_str

const char* prec_str[] = {"single", "double"}

Definition at line 26 of file contract_test.cpp.