File: ispcrt.isph

package info (click to toggle)
ispc 1.28.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 97,620 kB
  • sloc: cpp: 77,067; python: 8,303; yacc: 3,337; lex: 1,126; ansic: 631; sh: 475; makefile: 17
file content (14 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2020 Intel Corporation
// SPDX-License-Identifier: BSD-3-Clause

#pragma once

#ifndef ISPC_GPU
#define DEFINE_CPU_ENTRY_POINT(fcn_name)                                                                               \
    export void fcn_name##_cpu_entry_point(void *uniform parameters, uniform int dim0, uniform int dim1,               \
                                           uniform int dim2) {                                                         \
        launch[dim0, dim1, dim2] fcn_name(parameters);                                                                 \
    }
#else
#define DEFINE_CPU_ENTRY_POINT(fcn_name)
#endif