error 209

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 }

Sorry, I am not that familiar with that card. Can you cut and paste the output of running “pgaccelinfo” so I can see what card we detect?

Hi Sankha,

This is the error you get when building a binary targeting a device that’s older than the installed device. For example building for a Kepler (cc35) but running on a Maxwell (cc50).

When building with PGI 15.7 on a Maxwell system similar to yours, I can only replicate the error if I compile targeting cc35. Compiling to cc50 works fine. Can you please double check that you do compile with cc50?

% pgcc -V

pgcc 15.7-0 64-bit target on x86-64 Linux -tp k8
The Portland Group - PGI Compilers and Tools
Copyright (c) 2015, NVIDIA CORPORATION.  All rights reserved.
% pgcc -acc -fast -ta=tesla:cc35 add.c -o add ; add
call to cuModuleLoadData returned error 209: No binary for GPU
% pgcc -acc -fast -ta=tesla:cc50 add.c -o add ; add
11
13
15
17
19
% pgcc -acc -fast -ta=tesla add.c -o add ; add
11
13
15
17
19
  • Mat