Intel® Cilk™ Plus

Bug when using elemental functions and chars

Hi,

 i have a small program using an elemental function to compute the edit distance of two strings:

__attribute__((vector))
int compare(char x, char y) {
    if (x == y) {
        return(1);
    } else {
        return(0);
    }
}
int main()
{
    char a[3] = {'A','A','A'};
    char b[3] = {'A','A','A'};
    int c[3];
    for (int i = 0; i < 3; i++) {
        c[i] = compare(a[i], b[i]);
        cout << c[i];
    }
    return 0;
}

When compiling, i receive the following error message:

Vectorization of complex number operations using Cilk Plus (C++)

Hi, during optimization of my code I found that even simple C++ std::complex operations are not vectorized. See following code ///////////////////////////////////// #ifdef USE_CPP    #include    typedef std::complex cmplx16; #else    #include    typedef complex double cmplx16; #endif // USE_CPP #define simd_for _Pragma ("simd") for void sum(int Nx, int Ny, int Nz, cmplx16 A[Nx][Ny][Nz], cmplx16 B[Nx][Ny][Nz], cmplx16 C[Nx][Ny][Nz]) { __assume_aligned(A,32); __assume_aligned(B,32); __assume_aligned(C,32); for(int x=0; x   C[x][y][z] = A[x][y][z] + B[x][y][z];   } } } }

Compiling Cilk plus on Ubuntu 12.04 using gcc 4.7

Hi,

I am having trouble building Cilk plus (cilkplus-rtl-001857.tgz) on Ubuntu 12.04. The version of gcc and the error are below:

$ gcc --version
gcc (Ubuntu/Linaro 4.7.0-7ubuntu3) 4.7.0
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Error:

Database connection pooling library using cilk plus

Hi,     I am querying the database for a like 10000 tables ( the database is quite big ) and as of now my code for querying the database is serial. To speed up the process I intend to openup multiple connections to the database and query database i.e. embed some parallelism in the cilk code for my project. I cannot think of a way to implement this in cilk plus    I thought of doing it in the following manner( but I don't know anything that would help me):

Two compiler crashes

The following tests cause compiler crashes, although they should be incorrect uses of _Cilk_spwan. (The spec seemly does not exclude the first test).

icc version 12.1.4 (gcc version 4.6.0 compatibility) (1) // a.cpp int foo(int i) {   return i; } int a = _Cilk_spawn foo(0); int main() {   return a; } Error message: (0): internal error: backend signals compilation aborted for a.cpp (code 4) (2)  // Found by my colleague Ben Langmuir // b.cpp int main() {   _Cilk_spawn 0;   return 0; } Error Message:

Páginas

Suscribirse a Intel® Cilk™ Plus