Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
type_traits.hpp File Reference

Contains traits and utilities for backend related types. More...

#include "shambase/aliases_float.hpp"
#include "shambase/type_name_info.hpp"
#include "shambase/type_traits.hpp"
#include "shambackends/typeAliasFp16.hpp"
+ Include dependency graph for type_traits.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  shambase::TypeNameInfo< sycl::vec< T, n > >
 

Namespaces

namespace  sham
 namespace for backends this one is named only sham since shambackends is too long to write
 
namespace  shambase
 namespace for basic c++ utilities
 

Functions

constexpr bool sham::is_valid_sycl_vec_size (int N)
 Check if the given integer is a valid size for a SYCL vector.
 

Variables

template<class T >
constexpr bool sham::is_valid_sycl_base_type
 Check if a type is a valid SYCL base type in Shamrock.
 

Detailed Description

Contains traits and utilities for backend related types.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

This file contains traits and utilities for SYCL types. It provides a way to check if a type is a SYCL vector and if it is a valid SYCL vector size.

Definition in file type_traits.hpp.