Tag questions related to ISPC - Intel SPMD Program Compiler.
Questions tagged [ispc]
15 questions
11
votes
8 answers
SIMD programming languages
In the last couple of years, I've been doing a lot of SIMD programming and most of the time I've been relying on compiler intrinsic functions (such as the ones for SSE programming) or on programming assembly to get to the really nifty stuff.…

Jasper Bekkers
- 6,711
- 32
- 46
7
votes
1 answer
Why are SIMD instructions not used in kernel?
I couldn't find much use of SIMD instructions (like SSE/AVX) in kernel (except one place where they were used to speedup parity computation of RAID6).
Q1) Any specific reason for this or just the lack of use-case?
Q2) What needs to be done today if…

Saksham Jain
- 537
- 3
- 14
3
votes
2 answers
How do I use CMake to build an ispc file?
I have a simple project. It contains two files:
main.c
kernel.ispc
(ispc files are source for https://ispc.github.io/)
To manually compile the file I would just use:
ispc --target=sse2 kernel.ispc -o kernel.o
gcc -c main.c -o main.o
gcc main.o…

JodiTheTigger
- 415
- 5
- 7
2
votes
2 answers
How can I compile ISPC code in Linux and link it with normal cpp file?
I want to compile an ispc program. I am trying to generate the executable for one of their example programs.
I have simple.cpp with the below content
#include
#include
// Include the header file that the ispc compiler…

Adhitha Dias
- 83
- 8
1
vote
1 answer
define extern function printf style in ispc for logging
I want to implement a debugging function for my ispc code that can take a logging level as an argument and then printf style string and arguments.
The signature would be something like:
extern "C" void debug_log(enumDebugLevel debugLevel, char…

Sudsy
- 931
- 7
- 16
1
vote
1 answer
Task is to parallelize matrix multiplication with p-threads and vectorized with Intel ISPC compiler
In .ispc file using pthread generates errors as follows:
(1) t.ispc:2:13: Error: Illegal to return a "varying" or vector type
from exported function "matrix_mult_pl"
export void * matrix_mult_pl( void *arg )
(2) t.ispc:2:36: Error: Varying pointer…

Hassam Khan
- 21
- 1
- 5
1
vote
1 answer
How to step through ispc source files in Visual Studio or CLion debugger?
I'm getting started with ispc (Intel SPMD Program Compiler), and I'm able to compile and run the examples provided with the distribution. What I'd like to do next is to be able to step through an .ispc file inside the Visual Studio (or CLion)…

Daniel A. Thompson
- 1,904
- 1
- 17
- 26
1
vote
1 answer
returning struct by value from ispc-exported function?
I can not get at c++-side a struct by value from exported ispc-function (ispc v1.12 and msvc 2017 are used). Program
compiles and runs smoothly (32bit, debug mode), except i have empty fields where i expect non-zero values. In 32bit release mode i…

Michael Usachov
- 11
- 3
1
vote
1 answer
What is the difference between the vectorization of icc and that of ispc?
Both Intel C/C++ Compiler and Intel SPMD Program Compiler can generate vectorized code. My question is, is there any possible reason I should use ispc for code vectorization provided that my icc also can generate vectorized code?

Rayman
- 61
- 1
- 8
1
vote
0 answers
running ISPC on UBUNTU 32 bit
I have 32 Ubuntu 14.0 installed, can I Install and use ISPC(Intel SPDM program compiler) on it? If yes then how? if not then why? I have tried multiple times but did not find an appropriate answer.. Thank you in advance

FAHAD MAQBOOL
- 11
- 1
1
vote
1 answer
increasing the thread from 2 to 3 doesn't increase the amount of speed up in mandelbrot
I am using Intel i5 processor with 4 cores and 4 threads. Currently I am working on simulating mandelbrot set using pthreads and ISPC(Intel SPMD Program Compiler). When I used two threads for computing mandelbrot set image, based on the task…

Quantum_VC
- 185
- 13
0
votes
1 answer
How to convert a macro that invokes native.genrule and native.cc_library to a rule?
I have a macro that looks like this:
def ispc_cc_library(name, out, ispc_main_source_file, srcs, defines = [], **kwargs):
generated_header_filename = out
ispc_defines_list = ""
if "defines" in kwargs:
ispc_defines_list = "-D" +…

Vertexwahn
- 7,709
- 6
- 64
- 90
0
votes
1 answer
Idiomatic Linking, Optimization, and Compilation of LLVM Bitcode Files with Meson
I'm hoping to get pointed in the right direction for the most idiomatic way to link and compile LLVM bitcode (.bc) files generated by different compilers using the Meson build system.
In a nutshell (from ISPC FAQ):
$ ispc --emit-llvm -o foo_ispc.bc…

scienceplease
- 111
- 6
0
votes
1 answer
Fetch output of ISPC using a genrule
I am trying to make use of ISPC (Implicit SPMD Program Compiler) using Bazel. Therefore, I started to implement rules_ispc.
Unfortunately, I run into an issue with generating files using ispc.
You can reproduce my issue by:
git clone…

Vertexwahn
- 7,709
- 6
- 64
- 90
0
votes
1 answer
ISPC - can I limit the number of CPU threads to 1?
I'm using a ISPC-based program on Windows and I'm wondering if there's any way to limit the number of CPU threads to 1 since I have to run some experiments.

user129506
- 337
- 2
- 10