hello,
I was trying some beginners code in OpenAcc, which compiled fine but gave an error during running the code.
I am compiling as :
pgcc -acc -fast -ta=tesla:cc50 -Minfo=all add.c -o add
the error is :
call to cuModuleLoadData returned error 209: No binary for GPU
I am using GeForce GTX 980, PGI 15.7 and my code is given below…kindly help!
1 #include <stdio.h>
2 int main(void) {
3
4 int arr1 = {1,2,3,4,5};
5 int arr2 = {10,11,12,13,14};
6 int arr3[5];
7 int i,j;
8
9 #pragma acc parallel
10 #pragma acc loop
11 for (i=0; i<5; i++) {
12 arr3 = arr1 + arr2;
13 }
14
15 for (j=0; j<5; j++)
16 printf("%d\n", arr3[j]);
17
18 return 0;
19
20 }