/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk-artifacts
examples/cpu/simple/simple.cpp
29 строк
588 B
Dmitry Babokin
Remove the phrase "All rights reserved."
01 апр 2023, 03:48
01 апр 2023, 03:48
33bd2b4
Код
Авторство
О чём код?
/* Copyright (c) 2010-2023, Intel Corporation SPDX-License-Identifier: BSD-3-Clause */ #include <stdio.h> #include <stdlib.h> // Include the header file that the ispc compiler generates #include "simple_ispc.h" using namespace ispc; int main() { float vin[16], vout[16]; // Initialize input buffer for (int i = 0; i < 16; ++i) vin[i] = (float)i; // Call simple() function from simple.ispc file simple(vin, vout, 16); // Print results for (int i = 0; i < 16; ++i) printf("%d: simple(%f) = %f\n", i, vin[i], vout[i]); return 0; }