I’m trying to setup the latest PGI Community Edition (https://www.pgroup.com/products/community.htm) for Windows, on a non-NVIDIA GPU computer.
I understand that this is possible, based on this page https://developer.nvidia.com/pgi-cuda-cc-x86 (who’s download redirects me to the PGI Community Edition),
The PGI CUDA C compiler for x86 platforms allows developers using CUDA to compile and optimize their CUDA applications to run on x86-based workstations, servers and clusters with or without an NVIDIA GPU accelerator.
However after installing Visual Studio with appropriate components like the instructions asked, and installing PGI Community Edition, I get the following error when I run
nvcc hello_world.cu
,
Error: “‘bin2c’ is not recognized as an internal or external command, operable program or batch file.”
Anybody know what the error is?
The hello_world.cu program,
#include <stdio.h>
#include <stdlib.h>
// CUDA runtime
#include <cuda_runtime.h>
__global__ void cuda_hello(){
printf("Hello World from GPU!\n");
}
int main() {
cuda_hello<<<1,1>>>();
return 0;
}