Comments (3)
please provide more details, which cuda toolkit been installed? driver version? OS ?
Can you share output of "nvidia-smi" ?
from cuda-samples.
@mdoijade I'm facing the same issue.
./deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount returned 999
-> unknown error
Result = FAIL
I'm using Ubuntu 16.04
and installed nvidia-418
driver through the package manager/graphics-drivers ppa. Then I installed through cuda-repo-ubuntu1604-10-1-local-10.1.105-418.39_1.0-1_amd64.deb
and ran sudo apt-get install cuda
for complete installation (didn't install cuda-toolkit separately. Here: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#package-manager-metas).
This is what nvidia-smi -a
shows.
==============NVSMI LOG==============
Timestamp : Sat May 18 16:00:21 2019
Driver Version : 418.56
CUDA Version : 10.1
Attached GPUs : 1
GPU 00000000:07:00.0
Product Name : GeForce GT 740M
Product Brand : GeForce
Display Mode : N/A
Display Active : N/A
Persistence Mode : Disabled
Accounting Mode : N/A
Accounting Mode Buffer Size : N/A
Driver Model
Current : N/A
Pending : N/A
Serial Number : N/A
GPU UUID : GPU-c6f245ee-6e91-a68b-6ba4-2888ac47b7ce
Minor Number : 0
VBIOS Version : 80.28.2C.00.08
MultiGPU Board : N/A
Board ID : N/A
GPU Part Number : N/A
Inforom Version
Image Version : N/A
OEM Object : N/A
ECC Object : N/A
Power Management Object : N/A
GPU Operation Mode
Current : N/A
Pending : N/A
GPU Virtualization Mode
Virtualization mode : N/A
IBMNPU
Relaxed Ordering Mode : N/A
PCI
Bus : 0x07
Device : 0x00
Domain : 0x0000
Device Id : 0x129210DE
Bus Id : 00000000:07:00.0
Sub System Id : 0x380A17AA
GPU Link Info
PCIe Generation
Max : N/A
Current : N/A
Link Width
Max : N/A
Current : N/A
Bridge Chip
Type : N/A
Firmware : N/A
Replays Since Reset : 0
Replay Number Rollovers : 0
Tx Throughput : N/A
Rx Throughput : N/A
Fan Speed : N/A
Performance State : P0
Clocks Throttle Reasons : N/A
FB Memory Usage
Total : 2004 MiB
Used : 5 MiB
Free : 1999 MiB
BAR1 Memory Usage
Total : N/A
Used : N/A
Free : N/A
Compute Mode : Default
Utilization
Gpu : N/A
Memory : N/A
Encoder : N/A
Decoder : N/A
Encoder Stats
Active Sessions : N/A
Average FPS : N/A
Average Latency : N/A
FBC Stats
Active Sessions : N/A
Average FPS : N/A
Average Latency : N/A
Ecc Mode
Current : N/A
Pending : N/A
ECC Errors
Volatile
Single Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Texture Memory : N/A
Texture Shared : N/A
CBU : N/A
Total : N/A
Double Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Texture Memory : N/A
Texture Shared : N/A
CBU : N/A
Total : N/A
Aggregate
Single Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Texture Memory : N/A
Texture Shared : N/A
CBU : N/A
Total : N/A
Double Bit
Device Memory : N/A
Register File : N/A
L1 Cache : N/A
L2 Cache : N/A
Texture Memory : N/A
Texture Shared : N/A
CBU : N/A
Total : N/A
Retired Pages
Single Bit ECC : N/A
Double Bit ECC : N/A
Pending : N/A
Temperature
GPU Current Temp : 52 C
GPU Shutdown Temp : N/A
GPU Slowdown Temp : N/A
GPU Max Operating Temp : N/A
Memory Current Temp : N/A
Memory Max Operating Temp : N/A
Power Readings
Power Management : N/A
Power Draw : N/A
Power Limit : N/A
Default Power Limit : N/A
Enforced Power Limit : N/A
Min Power Limit : N/A
Max Power Limit : N/A
Clocks
Graphics : N/A
SM : N/A
Memory : N/A
Video : N/A
Applications Clocks
Graphics : 980 MHz
Memory : 900 MHz
Default Applications Clocks
Graphics : 980 MHz
Memory : 900 MHz
Max Clocks
Graphics : N/A
SM : N/A
Memory : N/A
Video : N/A
Max Customer Boost Clocks
Graphics : N/A
Clock Policy
Auto Boost : N/A
Auto Boost Default : N/A
Processes : N/A
Then compiled the samples and ran ./devicequery
When I compile and test cudnn
through ./mnistCUDNN
it shows the same error:
Error: unknown error
error_util.h:93
The code at error_util.h:93
is again the same function:
checkCudaErrors(cudaGetDeviceCount( &totalDevices ));
from cuda-samples.
@awhitesong this seems to be installation error and/or setup issue, you can post this query on nvidia cuda developer forum to get help - https://devtalk.nvidia.com/default/board/58/
I am closing this issue as this is not due to the sample source.
from cuda-samples.
Related Issues (20)
- Better version reporting in Visual Studio for missing or mismatched CUDA Toolkit version HOT 2
- rtx cuda
- Error in sample reduction code HOT 1
- shfl_scan 's shuffle_integral_image_test has some misleading code.
- Need to update samples/solutions to reference CUDA 12.5
- Tagging 12.5.
- p2pBandwidthLatencyTest has an oom error HOT 2
- cuda package v11.6 does not install libcusolver-dev and libcuparse-dev
- wrong comment
- [NV12toBGRandResize] output raw files with all of 0 value.
- Please update into v12.5 to make these samples compiled by VS2022 HOT 1
- All samples fail to load with VS2022 HOT 4
- Can't compile cuda samples
- Inconsistent inference accuracy of pytorch model caused by cuda version
- P2P is supported between GPUs that belong to different NUMA nodes
- nvidia-drm warning while installing the cuda 12.5.1
- Confusion about `block_tile_j` in cudaTensorCoreGemm.cu
- nvcc fatal: Option '--ptx (-ptx)' is not allowed when compiling for multiple GPU architectures HOT 1
- Where to find a DLA loadable sample?
- Updation required in the instructions for installing cuda toolkit 12.1 in Ubuntu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cuda-samples.