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:

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.

Subscribe to Intel® Cilk™ Plus