tfel
Loading...
Searching...
No Matches
tests.hxx File Reference

This file implements the tests of the semantics of the functions generated by the generic-parallel interface for material properties, shared by the tests of all the backends whose arrays are accessible by the host. More...

#include <array>
#include <cmath>
#include <limits>
#include <memory>
#include <string>
#include <tuple>
#include <utility>
#include "TFEL/Tests/TestCase.hxx"
#include "TFEL/Tests/TestProxy.hxx"
#include "MFront/GenericParallelMaterialProperty/PointStatus.hxx"
#include "MFront/GenericParallel/ParallelSTLBackendExecutionPolicy.hxx"
#include "symbols.hxx"
#include "batch.hxx"

Classes

struct  GenericParallelMaterialPropertyTest
struct  OtherBackendExecutionPolicy
 execution policy of a backend which is not the one of the library More...
struct  ExecutionPolicyTest
 execution policies given to the generated functions More...

Functions

 TFEL_TESTS_GENERATE_PROXY (GenericParallelMaterialPropertyTest, "GenericParallelMaterialPropertyTest")
 TFEL_TESTS_GENERATE_PROXY (ExecutionPolicyTest, "ExecutionPolicyTest")

Detailed Description

This file implements the tests of the semantics of the functions generated by the generic-parallel interface for material properties, shared by the tests of all the backends whose arrays are accessible by the host.

The test of a backend includes this file after the headers of the material properties and defines:

  • test_vector<T>, an array of values accessible by the host and by the device;
  • testExecution(), a function returning the execution of a synchronous evaluation (TestExecution): no statistics, and the execution policy of the tests (null for the default policy, queue of the tests with the sycl backend);
  • makeTestPolicy(o), a function returning an execution policy of the backend with the common options o, on the queue of the tests;
  • the MFRONT_GPMP_TEST_BACKEND_NAME macro, giving the name of the backend.
    Date
    20/10/2026