I’m new in PGI and OpenACC.
In my laptop there is a NVIDIA NVS 5400M GPU.
I’ve install PGI computer on Ubuntu 12.04.3.
Under Linux Optimus based cards can use by Bumblebee (http://bumblebee-project.org/)
pgaccelinfo says without using Bumblebee:
$ ./pgaccelinfo CUDA Driver Version: 5050 FATAL: Module nvidia not found. No accelerators found. Try ./pgaccelinfo -v for more information
$ optirun ./pgaccelinfo CUDA Driver Version: 5050 NVRM version: NVIDIA UNIX x86_64 Kernel Module 319.37 Wed Jul 3 17:08:50 PDT 2013 Device Number: 0 Device Name: NVS 5400M Device Revision Number: 2.1 Global Memory Size: 1073414144 Number of Multiprocessors: 2 Number of Cores: 64 Concurrent Copy and Execution: Yes Total Constant Memory: 65536 Total Shared Memory per Block: 49152 Registers per Block: 32768 Warp Size: 32 Maximum Threads per Block: 1024 Maximum Block Dimensions: 1024, 1024, 64 Maximum Grid Dimensions: 65535 x 65535 x 65535 Maximum Memory Pitch: 2147483647B Texture Alignment: 512B Clock Rate: 950 MHz Execution Timeout: Yes Integrated Device: No Can Map Host Memory: Yes Compute Mode: default Concurrent Kernels: Yes ECC Enabled: No Memory Clock Rate: 900 MHz Memory Bus Width: 128 bits L2 Cache Size: 131072 bytes Max Threads Per SMP: 1536 Async Engines: 1 Unified Addressing: No Initialization time: 1149 microseconds Current free memory: 1052237824 Upload time (4MB): 857 microseconds ( 691 ms pinned) Download time: 964 microseconds ( 674 ms pinned) Upload bandwidth: 4894 MB/sec (6069 MB/sec pinned) Download bandwidth: 4350 MB/sec (6223 MB/sec pinned) PGI Compiler Option: -ta=nvidia,cc20
So pgaccecelinfo finds my GPU with Bumblebee.
I wanted to try some example from /opt/pgi/etc/samples/openacc. I can compile them, but I have troube with running.
Run acc_c1.exe says without optirun:
$ ./acc_c1.exe FATAL: Module nvidia not found. 100000 iterations completed
Of course it is not problem, but running with optirun there is no answer! (should print “100000 iterations completed”)
Have anybody some experience with Optimus / Bumblebee?
Thanks in advance for any help anybody could provide!