🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 169 (from laksa104)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

đź“„
INDEXABLE
âś…
CRAWLED
5 days ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffPASSdownload_stamp > now() - 6 MONTH0.2 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu
Last Crawled2026-04-02 22:45:42 (5 days ago)
First Indexed2021-09-04 12:36:50 (4 years ago)
HTTP Status Code200
Meta Titlepython - How does one use Pytorch (+ cuda) with an A100 GPU? - Stack Overflow
Meta Descriptionnull
Meta Canonicalnull
Boilerpipe Text
I was trying to use my current code with an A100 gpu but I get this error: ---> backend= 'nccl' /home/miranda9/miniconda3/envs/metalearningpy1 .7 .1 c10 .2 /lib/python3 .8 /site-packages/torch/cuda/__init__.py: 104 : UserWarning: A100-SXM4-40GB with CUDA capability sm_80 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_61 sm_70 sm_75 compute_37. If you want to use the A100-SXM4-40GB GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/ which is reather confusing because it points to the usual pytorch installation but doesn't tell me which combination of pytorch version + cuda version to use for my specific hardware (A100). What is the right way to install pytorch for an A100? These are some versions I've tried: # conda install -y pytorch==1.8.0 torchvision cudatoolkit=10.2 -c pytorch # conda install -y pytorch torchvision cudatoolkit=10.2 -c pytorch #conda install -y pytorch==1.7.1 torchvision torchaudio cudatoolkit=10.2 -c pytorch -c conda-forge # conda install -y pytorch==1.6.0 torchvision cudatoolkit=10.2 -c pytorch #conda install -y pytorch==1.7.1 torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge # conda install pytorch torchvision torchaudio cudatoolkit=11.0 -c pytorch # conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge # conda install -y pytorch torchvision cudatoolkit=9.2 -c pytorch # For Nano, CC # conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge note that this can be subtle because I've had this error with this machine + pytorch version in the past: How to solve the famous `unhandled cuda error, NCCL version 2.7.8` error? Bonus 1: I still have errors: ncclSystemError: System call (socket, malloc, munmap, etc) failed. Traceback (most recent call last): File "/home/miranda9/diversity-for-predictive-success-of-meta-learning/div_src/diversity_src/experiment_mains/main_dist_maml_l2l.py" , line 1423 , in <module> main() File "/home/miranda9/diversity-for-predictive-success-of-meta-learning/div_src/diversity_src/experiment_mains/main_dist_maml_l2l.py" , line 1365 , in main train(args=args) File "/home/miranda9/diversity-for-predictive-success-of-meta-learning/div_src/diversity_src/experiment_mains/main_dist_maml_l2l.py" , line 1385 , in train args.opt = move_opt_to_cherry_opt_and_sync_params(args) if is_running_parallel(args.rank) else args.opt File "/home/miranda9/ultimate-utils/ultimate-utils-proj-src/uutils/torch_uu/distributed.py" , line 456 , in move_opt_to_cherry_opt_and_sync_params args.opt = cherry.optim.Distributed(args.model.parameters(), opt=args.opt, sync=syn) File "/home/miranda9/miniconda3/envs/meta_learning_a100/lib/python3.9/site-packages/cherry/optim.py" , line 62 , in __init__ self.sync_parameters() File "/home/miranda9/miniconda3/envs/meta_learning_a100/lib/python3.9/site-packages/cherry/optim.py" , line 78 , in sync_parameters dist.broadcast(p.data, src=root) File "/home/miranda9/miniconda3/envs/meta_learning_a100/lib/python3.9/site-packages/torch/distributed/distributed_c10d.py" , line 1090 , in broadcast work = default_pg.broadcast([tensor], opts) RuntimeError: NCCL error in : ../torch/lib/c10d/ProcessGroupNCCL.cpp: 911 , unhandled system error, NCCL version 2.7 .8 one of the answers suggested to have nvcca & pytorch.version.cuda to match but they do not: (meta_learning_a100) [miranda9@hal-dgx ~]$ python -c "import torch;print(torch.version.cuda)" 11.1 (meta_learning_a100) [miranda9@hal-dgx ~]$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005 - 2020 NVIDIA Corporation Built on Wed_Jul_22_19:09:09_PDT_2020 Cuda compilation tools, release 11.0 , V11 .0 .221 Build cuda_11 .0 _bu.TC445_37 .28845127_0 How do I match them? I this the error? Can someone display their pip, conda and nvcca version to see what set up works? More error messages: hal-dgx: 21797 : 21797 [ 0 ] NCCL INFO Bootstrap : Using [ 0 ]enp226s0: 141.142 .153 .83 < 0 > [ 1 ]virbr0: 192.168 .122 .1 < 0 > hal-dgx: 21797 : 21797 [ 0 ] NCCL INFO NET/Plugin : No plugin found (libnccl-net.so), using internal implementation hal-dgx: 21797 : 21797 [ 0 ] NCCL INFO NET/IB : Using [ 0 ]mlx5_0: 1 /IB [ 1 ]mlx5_1: 1 /IB [ 2 ]mlx5_2: 1 /IB [ 3 ]mlx5_3: 1 /IB [ 4 ]mlx5_4: 1 /IB [ 5 ]mlx5_5: 1 /IB [ 6 ]mlx5_6: 1 /IB [ 7 ]mlx5_7: 1 /IB ; OOB enp226s0: 141.142 .153 .83 < 0 > hal-dgx: 21797 : 21797 [ 0 ] NCCL INFO Using network IB NCCL version 2.7 .8 +cuda11 .1 hal-dgx: 21805 : 21805 [ 2 ] NCCL INFO Bootstrap : Using [ 0 ]enp226s0: 141.142 .153 .83 < 0 > [ 1 ]virbr0: 192.168 .122 .1 < 0 > hal-dgx: 21799 : 21799 [ 1 ] NCCL INFO Bootstrap : Using [ 0 ]enp226s0: 141.142 .153 .83 < 0 > [ 1 ]virbr0: 192.168 .122 .1 < 0 > hal-dgx: 21805 : 21805 [ 2 ] NCCL INFO NET/Plugin : No plugin found (libnccl-net.so), using internal implementation hal-dgx: 21799 : 21799 [ 1 ] NCCL INFO NET/Plugin : No plugin found (libnccl-net.so), using internal implementation hal-dgx: 21811 : 21811 [ 3 ] NCCL INFO Bootstrap : Using [ 0 ]enp226s0: 141.142 .153 .83 < 0 > [ 1 ]virbr0: 192.168 .122 .1 < 0 > hal-dgx: 21811 : 21811 [ 3 ] NCCL INFO NET/Plugin : No plugin found (libnccl-net.so), using internal implementation hal-dgx: 21811 : 21811 [ 3 ] NCCL INFO NET/IB : Using [ 0 ]mlx5_0: 1 /IB [ 1 ]mlx5_1: 1 /IB [ 2 ]mlx5_2: 1 /IB [ 3 ]mlx5_3: 1 /IB [ 4 ]mlx5_4: 1 /IB [ 5 ]mlx5_5: 1 /IB [ 6 ]mlx5_6: 1 /IB [ 7 ]mlx5_7: 1 /IB ; OOB enp226s0: 141.142 .153 .83 < 0 > hal-dgx: 21811 : 21811 [ 3 ] NCCL INFO Using network IB hal-dgx: 21799 : 21799 [ 1 ] NCCL INFO NET/IB : Using [ 0 ]mlx5_0: 1 /IB [ 1 ]mlx5_1: 1 /IB [ 2 ]mlx5_2: 1 /IB [ 3 ]mlx5_3: 1 /IB [ 4 ]mlx5_4: 1 /IB [ 5 ]mlx5_5: 1 /IB [ 6 ]mlx5_6: 1 /IB [ 7 ]mlx5_7: 1 /IB ; OOB enp226s0: 141.142 .153 .83 < 0 > hal-dgx: 21805 : 21805 [ 2 ] NCCL INFO NET/IB : Using [ 0 ]mlx5_0: 1 /IB [ 1 ]mlx5_1: 1 /IB [ 2 ]mlx5_2: 1 /IB [ 3 ]mlx5_3: 1 /IB [ 4 ]mlx5_4: 1 /IB [ 5 ]mlx5_5: 1 /IB [ 6 ]mlx5_6: 1 /IB [ 7 ]mlx5_7: 1 /IB ; OOB enp226s0: 141.142 .153 .83 < 0 > hal-dgx: 21799 : 21799 [ 1 ] NCCL INFO Using network IB hal-dgx: 21805 : 21805 [ 2 ] NCCL INFO Using network IB hal-dgx: 21797 : 27906 [ 0 ] misc/ibvwrap.cc: 280 NCCL WARN Call to ibv_create_qp failed hal-dgx: 21797 : 27906 [ 0 ] NCCL INFO transport/net_ib.cc: 360 -> 2 hal-dgx: 21797 : 27906 [ 0 ] NCCL INFO transport/net_ib.cc: 437 -> 2 hal-dgx: 21797 : 27906 [ 0 ] NCCL INFO include/net.h: 21 -> 2 hal-dgx: 21797 : 27906 [ 0 ] NCCL INFO include/net.h: 51 -> 2 hal-dgx: 21797 : 27906 [ 0 ] NCCL INFO init.cc: 300 -> 2 hal-dgx: 21797 : 27906 [ 0 ] NCCL INFO init.cc: 566 -> 2 hal-dgx: 21797 : 27906 [ 0 ] NCCL INFO init.cc: 840 -> 2 hal-dgx: 21797 : 27906 [ 0 ] NCCL INFO group.cc: 73 -> 2 [Async thread] hal-dgx: 21811 : 27929 [ 3 ] misc/ibvwrap.cc: 280 NCCL WARN Call to ibv_create_qp failed hal-dgx: 21811 : 27929 [ 3 ] NCCL INFO transport/net_ib.cc: 360 -> 2 hal-dgx: 21811 : 27929 [ 3 ] NCCL INFO transport/net_ib.cc: 437 -> 2 hal-dgx: 21811 : 27929 [ 3 ] NCCL INFO include/net.h: 21 -> 2 hal-dgx: 21811 : 27929 [ 3 ] NCCL INFO include/net.h: 51 -> 2 hal-dgx: 21811 : 27929 [ 3 ] NCCL INFO init.cc: 300 -> 2 hal-dgx: 21811 : 27929 [ 3 ] NCCL INFO init.cc: 566 -> 2 hal-dgx: 21811 : 27929 [ 3 ] NCCL INFO init.cc: 840 -> 2 hal-dgx: 21811 : 27929 [ 3 ] NCCL INFO group.cc: 73 -> 2 [Async thread] after putting import os os.environ[ "NCCL_DEBUG" ] = "INFO"
Markdown
# ![site logo](https://stackoverflow.com/Content/Img/SE-logo75.png) By clicking “Sign up”, you agree to our [terms of service](https://stackoverflow.com/legal/terms-of-service/public) and acknowledge you have read our [privacy policy](https://stackoverflow.com/legal/privacy-policy). # OR Already have an account? [Log in](https://stackoverflow.com/users/login) [Skip to main content](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#content) [Stack Overflow](https://stackoverflow.com/) 1. [About](https://stackoverflow.co/) 2. Products 3. [For Teams](https://stackoverflow.co/internal/) 1. [Stack Internal Implement a knowledge platform layer to power your enterprise and AI tools.](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) 2. [Stack Data Licensing Get access to top-class technical expertise with trusted & attributed content.](https://stackoverflow.co/data-licensing/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) 3. [Stack Ads Connect your brand to the world’s most trusted technologist communities.](https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) 4. [Releases Keep up-to-date on features we add to Stack Overflow and Stack Internal.](https://stackoverflow.blog/releases/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=releases) 5. [About the company](https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) [Visit the blog](https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) 1. ### [current community](https://stackoverflow.com/) - [Stack Overflow](https://stackoverflow.com/) [help](https://stackoverflow.com/help) [chat](https://chat.stackoverflow.com/?tab=explore) - [Meta Stack Overflow](https://meta.stackoverflow.com/) ### your communities [Sign up](https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F66992585%2Fhow-does-one-use-pytorch-cuda-with-an-a100-gpu) or [log in](https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F66992585%2Fhow-does-one-use-pytorch-cuda-with-an-a100-gpu) to customize your list. ### [more stack exchange communities](https://stackexchange.com/sites) [company blog](https://stackoverflow.blog/) 2. [Log in](https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F66992585%2Fhow-does-one-use-pytorch-cuda-with-an-a100-gpu) 3. [Sign up](https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F66992585%2Fhow-does-one-use-pytorch-cuda-with-an-a100-gpu) # Let's set up your homepage Select a few topics you're interested in: python javascript c\# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: - javascript - python - java - c\# - php - android - html - jquery - c++ - css - ios - sql - mysql - r - reactjs - node.js - arrays - c - asp.net - json - python-3.x - .net - ruby-on-rails - sql-server - swift - django - angular - objective-c - excel - pandas - angularjs - regex - typescript - ruby - linux - ajax - iphone - vba - xml - laravel - spring - asp.net-mvc - database - wordpress - string - flutter - postgresql - mongodb - wpf - windows - xcode - amazon-web-services - bash - git - oracle-database - spring-boot - dataframe - azure - firebase - list - multithreading - docker - vb.net - react-native - eclipse - algorithm - powershell - macos - visual-studio - numpy - image - forms - scala - function - vue.js - performance - twitter-bootstrap - selenium - winforms - kotlin - loops - dart - express - hibernate - sqlite - matlab - python-2.7 - shell - rest - apache - entity-framework - android-studio - csv - maven - linq - qt - dictionary - unit-testing - asp.net-core - facebook - apache-spark - tensorflow - file - swing - class - unity-game-engine - sorting - date - authentication - go - symfony - t-sql - opencv - matplotlib - .htaccess - google-chrome - for-loop - datetime - codeigniter - perl - http - validation - sockets - google-maps - object - uitableview - xaml - oop - visual-studio-code - if-statement - cordova - ubuntu - web-services - email - android-layout - github - spring-mvc - elasticsearch - kubernetes - selenium-webdriver - ms-access - ggplot2 - user-interface - parsing - pointers - google-sheets - c++11 - security - machine-learning - google-apps-script - ruby-on-rails-3 - templates - flask - nginx - variables - exception - sql-server-2008 - gradle - debugging - tkinter - delphi - listview - jpa - asynchronous - haskell - web-scraping - pdf - jsp - ssl - amazon-s3 - google-cloud-platform - testing - jenkins - xamarin - wcf - batch-file - generics - npm - ionic-framework - network-programming - unix - recursion - google-app-engine - mongoose - visual-studio-2010 - .net-core - android-fragments - assembly - animation - math - svg - rust - session - intellij-idea - hadoop - join - curl - winapi - django-models - laravel-5 - next.js - url - heroku - http-redirect - tomcat - inheritance - google-cloud-firestore - webpack - gcc - image-processing - swiftui - keras - asp.net-mvc-4 - logging - dom - matrix - pyspark - actionscript-3 - button - post - optimization - firebase-realtime-database - jquery-ui - cocoa - xpath - iis - web - d3.js - javafx - firefox - xslt - internet-explorer - caching - select - asp.net-mvc-3 - opengl - events - asp.net-web-api - plot - dplyr - encryption - magento - stored-procedures - search - amazon-ec2 - ruby-on-rails-4 - memory - canvas - multidimensional-array - audio - random - jsf - vector - redux - cookies - input - facebook-graph-api - flash - indexing - xamarin.forms - arraylist - ipad - cocoa-touch - data-structures - video - model-view-controller - azure-devops - serialization - apache-kafka - jdbc - razor - woocommerce - awk - routes - mod-rewrite - servlets - excel-formula - beautifulsoup - filter - iframe - docker-compose - design-patterns - aws-lambda - text - visual-c++ - django-rest-framework - cakephp - mobile - android-intent - struct - react-hooks - methods - groovy - mvvm - lambda - ssh - checkbox - time - ecmascript-6 - grails - google-chrome-extension - installation - cmake - sharepoint - shiny - spring-security - jakarta-ee - plsql - android-recyclerview - core-data - types - sed - meteor - android-activity - bootstrap-4 - activerecord - websocket - replace - graph - group-by - scikit-learn - vim - file-upload - boost - junit - memory-management - sass - async-await - import - deep-learning - error-handling - eloquent - dynamic - dependency-injection - soap - silverlight - layout - apache-spark-sql - charts - deployment - browser - gridview - svn - while-loop - google-bigquery - vuejs2 - highcharts - dll - ffmpeg - view - foreach - makefile - plugins - redis - c\#-4.0 - reporting-services - jupyter-notebook - unicode - merge - reflection - https - server - google-maps-api-3 - twitter - oauth-2.0 - extjs - terminal - axios - pip - split - cmd - pytorch - encoding - django-views - collections - database-design - hash - netbeans - automation - data-binding - ember.js - build - tcp - pdo - sqlalchemy - apache-flex - entity-framework-core - concurrency - command-line - spring-data-jpa - printing - react-redux - java-8 - lua - html-table - neo4j - ansible - service - jestjs - mysqli - enums - parameters - flexbox - material-ui - module - promise - visual-studio-2012 - outlook - web-applications - firebase-authentication - uwp - webview - jquery-mobile - utf-8 - datatable - python-requests - parallel-processing - colors - drop-down-menu - scipy - scroll - tfs - hive - count - syntax - ms-word - twitter-bootstrap-3 - ssis - fonts - rxjs - constructor - google-analytics - file-io - paypal - three.js - powerbi - graphql - cassandra - discord - graphics - compiler-errors - gwt - react-router - socket.io - backbone.js - solr - memory-leaks - url-rewriting - datatables - nlp - terraform - oauth - datagridview - drupal - zend-framework - oracle11g - knockout.js - triggers - interface - neural-network - django-forms - casting - angular-material - jmeter - linked-list - google-api - path - timer - arduino - django-templates - orm - proxy - directory - windows-phone-7 - parse-platform - visual-studio-2015 - cron - conditional-statements - push-notification - functional-programming - primefaces - pagination - model - jar - xamarin.android - hyperlink - uiview - vbscript - visual-studio-2013 - google-cloud-functions - azure-active-directory - gitlab - jwt - download - swift3 - sql-server-2005 - process - configuration - rspec - pygame - properties - callback - combobox - windows-phone-8 - linux-kernel - safari - scrapy - permissions - emacs - x86 - clojure - scripting - raspberry-pi - scope - io - azure-functions - compilation - expo - responsive-design - mongodb-query - nhibernate - angularjs-directive - reference - request - bluetooth - binding - architecture - dns - playframework - 3d - pyqt - version-control - discord.js - doctrine-orm - package - f\# - rubygems - get - sql-server-2012 - autocomplete - tree - openssl - datepicker - kendo-ui - jackson - yii - controller - grep - nested - xamarin.ios - static - null - transactions - statistics - datagrid - active-directory - dockerfile - uiviewcontroller - webforms - sas - discord.py - computer-vision - phpmyadmin - notifications - duplicates - pycharm - mocking - youtube - yaml - nullpointerexception - menu - blazor - sum - plotly - bitmap - visual-studio-2008 - asp.net-mvc-5 - floating-point - css-selectors - yii2 - stl - electron - android-listview - jsf-2 - time-series - cryptography - ant - character-encoding - hashmap - stream - msbuild - asp.net-core-mvc - sdk - google-drive-api - jboss - selenium-chromedriver - joomla - devise - navigation - cors - cuda - anaconda - frontend - background - multiprocessing - binary - pyqt5 - camera - iterator - linq-to-sql - mariadb - onclick - android-jetpack-compose - ios7 - microsoft-graph-api - android-asynctask - rabbitmq - tabs - amazon-dynamodb - environment-variables - laravel-4 - uicollectionview - insert - linker - xsd - coldfusion - console - continuous-integration - upload - textview - ftp - opengl-es - operating-system - macros - mockito - localization - formatting - xml-parsing - json.net - type-conversion - vuejs3 - data.table - kivy - timestamp - integer - calendar - segmentation-fault - android-ndk - prolog - char - drag-and-drop - crash - jasmine - automated-tests - dependencies - geometry - azure-pipelines - fortran - android-gradle-plugin - itext - sprite-kit - mfc - header - attributes - nosql - firebase-cloud-messaging - format - nuxt.js - odoo - db2 - jquery-plugins - event-handling - julia - jenkins-pipeline - leaflet - annotations - flutter-layout - nestjs - keyboard - postman - arm - textbox - stripe-payments - visual-studio-2017 - gulp - libgdx - uikit - synchronization - timezone - azure-web-app-service - dom-events - wso2 - xampp - google-sheets-formula - crystal-reports - aggregation-framework - namespaces - swagger - android-emulator - uiscrollview - jvm - sequelize.js - chart.js - com - snowflake-cloud-data-platform - subprocess - geolocation - webdriver - garbage-collection - html5-canvas - sql-update - centos - dialog - concatenation - numbers - widget - qml - tuples - set - java-stream - mapreduce - ionic2 - smtp - windows-10 - android-edittext - nuget - rotation - spring-data - modal-dialog - radio-button - doctrine - http-headers - grid - lucene - sonarqube - xmlhttprequest - listbox - switch-statement - initialization - internationalization - components - boolean - apache-camel - google-play - gdb - serial-port - ios5 - ldap - return - youtube-api - pivot - eclipse-plugin - latex - frameworks - tags - containers - c++17 - subquery - github-actions - embedded - dataset - asp-classic - foreign-keys - label - uinavigationcontroller - delegates - copy - google-cloud-storage - struts2 - migration - protractor - base64 - uibutton - queue - find - sql-server-2008-r2 - arguments - composer-php - append - jaxb - stack - zip - tailwind-css - cucumber - autolayout - ide - entity-framework-6 - iteration - popup - r-markdown - windows-7 - vb6 - airflow - g++ - clang - hover - ssl-certificate - jqgrid - range - gmail Next You’ll be prompted to create an account to view your personalized homepage. 1. 1. [Home](https://stackoverflow.com/) 2. [Questions](https://stackoverflow.com/questions) 3. [AI Assist](https://stackoverflow.com/ai-assist) 4. [Tags](https://stackoverflow.com/tags) 5. [Challenges](https://stackoverflow.com/beta/challenges) 6. [Chat](https://chat.stackoverflow.com/?tab=explore) 7. [Articles](https://stackoverflow.blog/contributed?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=so-blog&utm_content=experiment-articles) 8. [Users](https://stackoverflow.com/users) 9. [Companies](https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) 10. [Collectives]() 11. Communities for your favorite technologies. [Explore all Collectives](https://stackoverflow.com/collectives-all) 2. Stack Internal Stack Overflow for Teams is now called **Stack Internal**. Bring the best of human thought and AI automation together at your work. [Try for free](https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) [Learn more](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) 3. [Stack Internal]() 4. Bring the best of human thought and AI automation together at your work. [Learn more](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) ##### Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. [Learn more about Collectives](https://stackoverflow.com/collectives) **Stack Internal** Knowledge at work Bring the best of human thought and AI automation together at your work. [Explore Stack Internal](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact-popover) # [How does one use Pytorch (+ cuda) with an A100 GPU?](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu) [Ask Question](https://stackoverflow.com/questions/ask) Asked 4 years, 9 months ago Modified [7 months ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu?lastactivity "2025-06-18 09:01:10Z") Viewed 75k times This question shows research effort; it is useful and clear 47 Save this question. Show activity on this post. I was trying to use my current code with an A100 gpu but I get this error: ``` Copy ``` which is reather confusing because it points to the usual pytorch installation but doesn't tell me which combination of pytorch version + cuda version to use for my specific hardware (A100). What is the right way to install pytorch for an A100? *** These are some versions I've tried: ``` Copy ``` *** note that this can be subtle because I've had this error with this machine + pytorch version in the past: [How to solve the famous \`unhandled cuda error, NCCL version 2.7.8\` error?](https://stackoverflow.com/questions/66807131/how-to-solve-the-famous-unhandled-cuda-error-nccl-version-2-7-8-error) *** # Bonus 1: I still have errors: ``` Copy ``` one of the answers suggested to have nvcca & pytorch.version.cuda to match but they do not: ``` Copy ``` How do I match them? I this the error? Can someone display their pip, conda and nvcca version to see what set up works? More error messages: ``` Copy ``` after putting ``` Copy ``` - [python](https://stackoverflow.com/questions/tagged/python "show questions tagged 'python'") - [machine-learning](https://stackoverflow.com/questions/tagged/machine-learning "show questions tagged 'machine-learning'") - [neural-network](https://stackoverflow.com/questions/tagged/neural-network "show questions tagged 'neural-network'") - [pytorch](https://stackoverflow.com/questions/tagged/pytorch "show questions tagged 'pytorch'") [Share](https://stackoverflow.com/q/66992585 "Short permalink to this question") Share a link to this question Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this question](https://stackoverflow.com/posts/66992585/edit) Follow Follow this question to receive notifications [edited May 12, 2022 at 21:06](https://stackoverflow.com/posts/66992585/revisions "show all edits to this post") asked Apr 7, 2021 at 19:04 [![Charlie Parker's user avatar](https://i.sstatic.net/2B6rV.png?s=64)](https://stackoverflow.com/users/1601580/charlie-parker) [Charlie Parker](https://stackoverflow.com/users/1601580/charlie-parker) 6,2747979 gold badges264264 silver badges422422 bronze badges 3 - 2 Pytorch 1.7.0 or later with CUDA 11.0 or later [should work](https://www.marktechpost.com/2020/11/01/pytorch-releases-version-1-7-with-new-features-like-cuda-11-new-apis-for-ffts-and-nvidia-a100-generation-gpus-support/). Or you could use [NGC](https://ngc.nvidia.com/) Robert Crovella – [Robert Crovella](https://stackoverflow.com/users/1695960/robert-crovella "154,444 reputation") 2021-04-07 19:16:23 +00:00 [Commented Apr 7, 2021 at 19:16](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment118418045_66992585) - 1 @RobertCrovella if what you say it's true then the command needed is `conda install -y pytorch==1.7.1 torchvision torchaudio cudatoolkit=11.0 -c pytorch -c conda-forge` will try soon if it worked. Charlie Parker – [Charlie Parker](https://stackoverflow.com/users/1601580/charlie-parker "6,274 reputation") 2021-04-24 01:38:45 +00:00 [Commented Apr 24, 2021 at 1:38](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment118849441_66992585) - @CharlieParker just 14 minutes for the expiration of Bounty. non of these answers helpful? Sadra – [Sadra](https://stackoverflow.com/users/1076264/sadra "2,862 reputation") 2022-05-19 20:40:24 +00:00 [Commented May 19, 2022 at 20:40](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment127748943_66992585) [Add a comment](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu "Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.") \| ## 6 Answers 6 Sorted by: [Reset to default](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu?answertab=scoredesc#tab-top) This answer is useful 48 Save this answer. Show activity on this post. From the link [pytorch site](https://pytorch.org/get-started/locally/) from @SimonB 's answer, I did: ``` Copypip3 install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html ``` This solved the problem for me. [Share](https://stackoverflow.com/a/68626103 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/68626103/edit) Follow Follow this answer to receive notifications answered Aug 2, 2021 at 18:02 [![James Hirschorn's user avatar](https://www.gravatar.com/avatar/e4ee321232e2b4700138d891f6d2f004?s=64&d=identicon&r=PG)](https://stackoverflow.com/users/1349673/james-hirschorn) [James Hirschorn](https://stackoverflow.com/users/1349673/james-hirschorn) 8,14466 gold badges5656 silver badges5858 bronze badges Sign up to request clarification or add additional context in comments. ## 6 Comments Add a comment [![](https://www.gravatar.com/avatar/fed3f0aad2fe6040187cd2a7c10e7dcf?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/7998544/woma) Woma [Woma](https://stackoverflow.com/users/7998544/woma) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment121805600_68626103) For me, the conda installation did not work but the pip installation, no idea why 2021-08-25T11:32:10.157Z+00:00 1 Reply - Copy link [![](https://www.gravatar.com/avatar/aea0b2c6b6b44c5c7fe64f9a8561ffc8?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/3188690/tian) Tian [Tian](https://stackoverflow.com/users/3188690/tian) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment125318618_68626103) Somehow, it does not work for now, seems that the download link not work for some reason: "returned a non-zero code: 137" 2022-01-28T01:53:45.39Z+00:00 0 Reply - Copy link [![](https://i.sstatic.net/2B6rV.png?s=64)](https://stackoverflow.com/users/1601580/charlie-parker) Charlie Parker [Charlie Parker](https://stackoverflow.com/users/1601580/charlie-parker) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment127600966_68626103) are you sure this is right? I have that my pytorch wants 11.1 but nvcca is 11.0 see: `(meta_learning_a100) [miranda9@hal-dgx ~]$ python -c "import torch;print(torch.version.cuda)" 11.1 (meta_learning_a100) [miranda9@hal-dgx ~]$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Wed_Jul_22_19:09:09_PDT_2020 Cuda compilation tools, release 11.0, V11.0.221 Build cuda_11.0_bu.TC445_37.28845127_0` 2022-05-12T20:43:29.293Z+00:00 0 Reply - Copy link [![](https://www.gravatar.com/avatar/e4ee321232e2b4700138d891f6d2f004?s=48&d=identicon&r=PG)](https://stackoverflow.com/users/1349673/james-hirschorn) James Hirschorn [James Hirschorn](https://stackoverflow.com/users/1349673/james-hirschorn) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment127668237_68626103) @CharlieParker It's been too long for me to recall the context for this question. But `nvidia-smi` reveals that I have CUDA 11.4 and nvcc 10.1 2022-05-16T16:26:26.62Z+00:00 0 Reply - Copy link [![](https://www.gravatar.com/avatar/3b495f8e4707e59490dda3cd0940c5e9?s=48&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/8183621/pascaliv) PascalIv [PascalIv](https://stackoverflow.com/users/8183621/pascaliv) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment134468011_68626103) ERROR: No matching distribution found for torch==1.9.0+cu111 2023-05-15T09:12:04.423Z+00:00 2 Reply - Copy link Add a comment \| Show 1 more comment This answer is useful 8 Save this answer. Show activity on this post. I've got an A100 and have had success with ``` Copyconda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c nvidia ``` Which is now also recommended on the [pytorch site](https://pytorch.org/get-started/locally/) [Share](https://stackoverflow.com/a/67521477 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/67521477/edit) Follow Follow this answer to receive notifications answered May 13, 2021 at 14:58 [![Simon B's user avatar](https://www.gravatar.com/avatar/4a035074530513cee4b47303f64f904a?s=64&d=identicon&r=PG)](https://stackoverflow.com/users/1264592/simon-b) [Simon B](https://stackoverflow.com/users/1264592/simon-b) 26711 silver badge77 bronze badges ## 1 Comment Add a comment [![](https://i.sstatic.net/2B6rV.png?s=64)](https://stackoverflow.com/users/1601580/charlie-parker) Charlie Parker [Charlie Parker](https://stackoverflow.com/users/1601580/charlie-parker) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment127600972_67521477) are you sure this is right? I have that my pytorch wants 11.1 but nvcca is 11.0 see: `(meta_learning_a100) [miranda9@hal-dgx ~]$ python -c "import torch;print(torch.version.cuda)" 11.1 (meta_learning_a100) [miranda9@hal-dgx ~]$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Wed_Jul_22_19:09:09_PDT_2020 Cuda compilation tools, release 11.0, V11.0.221 Build cuda_11.0_bu.TC445_37.28845127_0` 2022-05-12T20:43:54.453Z+00:00 0 Reply - Copy link This answer is useful 4 Save this answer. Show activity on this post. To me this is what worked: ``` Copy ``` then I tested it, asked for the device and did a matrix multiply, no errors is it worked: ``` Copy ``` gpu pytorch code: ``` Copy ``` [Share](https://stackoverflow.com/a/70946283 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/70946283/edit) Follow Follow this answer to receive notifications answered Feb 1, 2022 at 19:18 [![Charlie Parker's user avatar](https://i.sstatic.net/2B6rV.png?s=64)](https://stackoverflow.com/users/1601580/charlie-parker) [Charlie Parker](https://stackoverflow.com/users/1601580/charlie-parker) 6,2747979 gold badges264264 silver badges422422 bronze badges ## 1 Comment Add a comment [![](https://lh4.googleusercontent.com/-6pGlNM6cH_4/AAAAAAAAAAI/AAAAAAAAACU/YixjVAUWv20/s48-rj/photo.jpg)](https://stackoverflow.com/users/9058482/harsh-kumar-chourasia) Harsh Kumar Chourasia [Harsh Kumar Chourasia](https://stackoverflow.com/users/9058482/harsh-kumar-chourasia) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment129644183_70946283) Thanks! This solution worked for me. I was trying to run pytorch inside docker. I uninstalled all the cuda libraries and pre-installed torch before running this command. 2022-08-19T05:48:05.663Z+00:00 0 Reply - Copy link This answer is useful 2 Save this answer. Show activity on this post. I had the same problem. You need to install CUDA 11.0 instead of 10.2 and reinstall PyTorch for this CUDA version. [Share](https://stackoverflow.com/a/67026338 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/67026338/edit) Follow Follow this answer to receive notifications answered Apr 9, 2021 at 18:15 [![guillaumefrd's user avatar](https://lh3.googleusercontent.com/-Q2BzoBitSPg/AAAAAAAAAAI/AAAAAAAAX1U/mQloaeFMW24/s64-rj/photo.jpg)](https://stackoverflow.com/users/8926322/guillaumefrd) [guillaumefrd](https://stackoverflow.com/users/8926322/guillaumefrd) 12766 bronze badges ## 3 Comments Add a comment [![](https://i.sstatic.net/2B6rV.png?s=64)](https://stackoverflow.com/users/1601580/charlie-parker) Charlie Parker [Charlie Parker](https://stackoverflow.com/users/1601580/charlie-parker) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment118848956_67026338) did you install pytorch 1.8.0 using cuda 11.0 or pytorch 1.7.x? 2021-04-24T00:40:10.057Z+00:00 0 Reply - Copy link [![](https://lh3.googleusercontent.com/-Q2BzoBitSPg/AAAAAAAAAAI/AAAAAAAAX1U/mQloaeFMW24/s48-rj/photo.jpg)](https://stackoverflow.com/users/8926322/guillaumefrd) guillaumefrd [guillaumefrd](https://stackoverflow.com/users/8926322/guillaumefrd) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment118869529_67026338) I tried 1.8.0 and 1.7.1, both were working. 2021-04-25T06:40:29.923Z+00:00 1 Reply - Copy link [![](https://i.sstatic.net/2B6rV.png?s=64)](https://stackoverflow.com/users/1601580/charlie-parker) Charlie Parker [Charlie Parker](https://stackoverflow.com/users/1601580/charlie-parker) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment127600974_67026338) are you sure this is right? I have that my pytorch wants 11.1 but nvcca is 11.0 see: `(meta_learning_a100) [miranda9@hal-dgx ~]$ python -c "import torch;print(torch.version.cuda)" 11.1 (meta_learning_a100) [miranda9@hal-dgx ~]$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Wed_Jul_22_19:09:09_PDT_2020 Cuda compilation tools, release 11.0, V11.0.221 Build cuda_11.0_bu.TC445_37.28845127_0` 2022-05-12T20:44:09.713Z+00:00 0 Reply - Copy link Add a comment This answer is useful 2 Save this answer. Show activity on this post. This solution is tested on a multi GPU **A100** environment: create a clean conda environment: `conda create -n pya100 python=3.9` then check your nvcc version by: `nvcc --version` \#mine return `11.3` then install pytorch in this way: (as of now it installs Pytorch 1.11.0, torchvision 0.12.0) ``` Copyconda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch -c nvidia ``` now `python -c "import torch;print(torch.version.cuda)"` returns `11.3` (though I don't think it matters that much) I shared my environment file [Here](https://pastebin.com/qTRzFHjZ). You can build one environment based on using this: (just replace NAMEOFENVIRONMENT with your environment name) ``` Copyconda env update --name NAMEOFENVIRONMENT --file environment.yml ``` [Share](https://stackoverflow.com/a/72244310 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/72244310/edit) Follow Follow this answer to receive notifications [edited May 18, 2022 at 2:24](https://stackoverflow.com/posts/72244310/revisions "show all edits to this post") answered May 14, 2022 at 22:34 [![Sadra's user avatar](https://i.sstatic.net/M7tOf.jpg?s=64)](https://stackoverflow.com/users/1076264/sadra) [Sadra](https://stackoverflow.com/users/1076264/sadra) 2,86222 gold badges2525 silver badges3434 bronze badges ## 3 Comments Add a comment [![](https://i.sstatic.net/M7tOf.jpg?s=64)](https://stackoverflow.com/users/1076264/sadra) Sadra [Sadra](https://stackoverflow.com/users/1076264/sadra) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment127638212_72244310) @CharlieParker I think this address your problem 2022-05-14T22:35:27.917Z+00:00 0 Reply - Copy link [![](https://i.sstatic.net/M7tOf.jpg?s=64)](https://stackoverflow.com/users/1076264/sadra) Sadra [Sadra](https://stackoverflow.com/users/1076264/sadra) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment127648326_72244310) if the current solution did not work please share `apt list --installed` through pastebin so I can compare if mine and give it another try 2022-05-15T17:20:42.75Z+00:00 0 Reply - Copy link [![](https://i.sstatic.net/M7tOf.jpg?s=64)](https://stackoverflow.com/users/1076264/sadra) Sadra [Sadra](https://stackoverflow.com/users/1076264/sadra) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment127748922_72244310) @CharlieParker does it help? 2022-05-19T20:39:31.213Z+00:00 0 Reply - Copy link Add a comment This answer is useful 1 Save this answer. Show activity on this post. Check your installed version of torch, torchvision, torchaudio etc. using ``` Copy<your virtualenv path>/bin/python -m torch.utils.collect_env ``` In my case I had this - ``` Copy ``` Since, I was not using torchvision or torchaudio, I just updated my `torch` version using the suggestion by @JamesHirschorn and selected the one according to my `torch` version from this [pytorch](https://download.pytorch.org/whl/torch_stable.html) link. e.g. in my case, the `torch` version was 1.11.0 and hence I installed `torch==1.11.0+cu113` `pip install torch==1.11.0+cu113 -f https://download.pytorch.org/whl/torch_stable.html` After update, the output of `<your virtualenv path>/bin/python -m torch.utils.collect_env` was ``` Copy ``` [Share](https://stackoverflow.com/a/72106714 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/72106714/edit) Follow Follow this answer to receive notifications answered May 4, 2022 at 0:21 [![rhn89's user avatar](https://i.sstatic.net/HDWUs.jpg?s=64)](https://stackoverflow.com/users/3082461/rhn89) [rhn89](https://stackoverflow.com/users/3082461/rhn89) 44855 silver badges1111 bronze badges ## 1 Comment Add a comment [![](https://i.sstatic.net/6rTV9.png?s=64)](https://stackoverflow.com/users/979474/user956584) user956584 [user956584](https://stackoverflow.com/users/979474/user956584) [Over a year ago](https://stackoverflow.com/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu#comment127424655_72106714) for me with message: Tesla K20Xm with CUDA capability sm\_35 is not compatible with the current PyTorch installation. this works: pip install torch==1.2.0+cu92 -f [download.pytorch.org/whl/torch\_stable.html](https://download.pytorch.org/whl/torch_stable.html) 2022-05-04T18:03:05.943Z+00:00 1 Reply - Copy link Start asking to get answers Find the answer to your question by asking. [Ask question](https://stackoverflow.com/questions/ask) Explore related questions - [python](https://stackoverflow.com/questions/tagged/python "show questions tagged 'python'") - [machine-learning](https://stackoverflow.com/questions/tagged/machine-learning "show questions tagged 'machine-learning'") - [neural-network](https://stackoverflow.com/questions/tagged/neural-network "show questions tagged 'neural-network'") - [pytorch](https://stackoverflow.com/questions/tagged/pytorch "show questions tagged 'pytorch'") See similar questions with these tags. - The Overflow Blog - [Is that allowed? Authentication and authorization in Model Context Protocol](https://stackoverflow.blog/2026/01/21/is-that-allowed-authentication-and-authorization-in-model-context-protocol/?cb=1) - [Automate your security whack-a-mole: Q\&A with Exaforce](https://stackoverflow.blog/2026/01/22/automate-your-security-whack-a-mole-q-and-a-with-exaforce/?cb=1) - Featured on Meta - [AI Assist: recent updates (January 2026)](https://meta.stackexchange.com/questions/416954/ai-assist-recent-updates-january-2026?cb=1) - [Community Engagement Across the Network: Focus for 2026](https://meta.stackexchange.com/questions/416985/community-engagement-across-the-network-focus-for-2026?cb=1) - [All users on Stack Overflow can now participate in chat](https://meta.stackoverflow.com/questions/437932/all-users-on-stack-overflow-can-now-participate-in-chat?cb=1) - [Policy: Generative AI (e.g., ChatGPT) is banned](https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned?cb=1) - [Stack Overflow now uses machine learning to flag spam automatically](https://meta.stackoverflow.com/questions/437959/stack-overflow-now-uses-machine-learning-to-flag-spam-automatically?cb=1) - [No, I do not believe this is the end](https://meta.stackoverflow.com/questions/438009/no-i-do-not-believe-this-is-the-end?cb=1) Community activity Last 1 hr - Users online activity 5257 users online - 11 questions - 16 answers - 26 comments - 156 upvotes Popular tags [image-processing](https://stackoverflow.com/questions/tagged/image-processing)[excel](https://stackoverflow.com/questions/tagged/excel)[png](https://stackoverflow.com/questions/tagged/png)[html](https://stackoverflow.com/questions/tagged/html)[client-side](https://stackoverflow.com/questions/tagged/client-side)[python](https://stackoverflow.com/questions/tagged/python) Popular unanswered question [MongoDB querySrv ECONNREFUSED on Node.js 22 after switching Node versions (worked before, now fails)](https://stackoverflow.com/questions/79873598) [node.js](https://stackoverflow.com/questions/tagged/node.js)[mongodb](https://stackoverflow.com/questions/tagged/mongodb)[windows](https://stackoverflow.com/questions/tagged/windows)[express](https://stackoverflow.com/questions/tagged/express)[mongoose](https://stackoverflow.com/questions/tagged/mongoose) [![User avatar](https://www.gravatar.com/avatar/66dea90129372b0e057d203049c3142b?s=256&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/32237460) [Vin](https://stackoverflow.com/users/32237460) - 11 19 hours ago #### Linked [23](https://stackoverflow.com/questions/66807131/how-to-solve-the-famous-unhandled-cuda-error-nccl-version-2-7-8-error?lq=1 "Question score (upvotes - downvotes)") [How to solve the famous \`unhandled cuda error, NCCL version 2.7.8\` error?](https://stackoverflow.com/questions/66807131/how-to-solve-the-famous-unhandled-cuda-error-nccl-version-2-7-8-error?noredirect=1&lq=1) [0](https://stackoverflow.com/questions/76366411/install-pytorch-dependencies-torchtext-torchdata-torch-with-cuda-and-a100?lq=1 "Question score (upvotes - downvotes)") [Install Pytorch dependencies (torchtext + torchdata + torch) with cuda and A100 GPU](https://stackoverflow.com/questions/76366411/install-pytorch-dependencies-torchtext-torchdata-torch-with-cuda-and-a100?noredirect=1&lq=1) #### Related [1](https://stackoverflow.com/questions/50771001/pytorch-not-using-cuda-device?rq=3 "Question score (upvotes - downvotes)") [Pytorch not using cuda device](https://stackoverflow.com/questions/50771001/pytorch-not-using-cuda-device?rq=3) [46](https://stackoverflow.com/questions/50954479/using-cuda-with-pytorch?rq=3 "Question score (upvotes - downvotes)") [Using CUDA with pytorch?](https://stackoverflow.com/questions/50954479/using-cuda-with-pytorch?rq=3) [12](https://stackoverflow.com/questions/51605893/why-doesnt-my-simple-pytorch-network-work-on-gpu-device?rq=3 "Question score (upvotes - downvotes)") [Why doesn't my simple pytorch network work on GPU device?](https://stackoverflow.com/questions/51605893/why-doesnt-my-simple-pytorch-network-work-on-gpu-device?rq=3) [4](https://stackoverflow.com/questions/56852347/model-cuda-in-pytorch?rq=3 "Question score (upvotes - downvotes)") [model.cuda() in pytorch](https://stackoverflow.com/questions/56852347/model-cuda-in-pytorch?rq=3) [2](https://stackoverflow.com/questions/59497887/how-can-i-convert-pytorch-cpu-based-transformation-to-cuda-based?rq=3 "Question score (upvotes - downvotes)") [How can I convert pytorch cpu-based transformation to cuda-based?](https://stackoverflow.com/questions/59497887/how-can-i-convert-pytorch-cpu-based-transformation-to-cuda-based?rq=3) [0](https://stackoverflow.com/questions/60063910/forcing-pytorch-to-use-gpu?rq=3 "Question score (upvotes - downvotes)") [Forcing Pytorch to use GPU](https://stackoverflow.com/questions/60063910/forcing-pytorch-to-use-gpu?rq=3) [0](https://stackoverflow.com/questions/62476250/how-to-run-a-pre-trained-pytorch-model-on-the-gpu?rq=3 "Question score (upvotes - downvotes)") [How to run a pre-trained pytorch model on the GPU?](https://stackoverflow.com/questions/62476250/how-to-run-a-pre-trained-pytorch-model-on-the-gpu?rq=3) [25](https://stackoverflow.com/questions/63423463/using-pytorch-cuda-on-macbook-pro?rq=3 "Question score (upvotes - downvotes)") [Using pytorch Cuda on MacBook Pro](https://stackoverflow.com/questions/63423463/using-pytorch-cuda-on-macbook-pro?rq=3) [4](https://stackoverflow.com/questions/67645531/how-does-one-run-pytorch-on-a-a40-gpu-without-errors-with-ddp-too?rq=3 "Question score (upvotes - downvotes)") [How does one run PyTorch on a A40 GPU without errors (with DDP too)?](https://stackoverflow.com/questions/67645531/how-does-one-run-pytorch-on-a-a40-gpu-without-errors-with-ddp-too?rq=3) [0](https://stackoverflow.com/questions/69591391/pytorch-using-cuda-prevents-optimization-from-working?rq=3 "Question score (upvotes - downvotes)") [Pytorch: using CUDA prevents optimization from working](https://stackoverflow.com/questions/69591391/pytorch-using-cuda-prevents-optimization-from-working?rq=3) #### [Hot Network Questions](https://stackexchange.com/questions?tab=hot) - [Question about Einstein problem](https://mathoverflow.net/questions/507294/question-about-einstein-problem) - [Is there a deeper reason why surjections are harder to count than injections?](https://math.stackexchange.com/questions/5120661/is-there-a-deeper-reason-why-surjections-are-harder-to-count-than-injections) - [Abandoned art and copyright?](https://law.stackexchange.com/questions/113979/abandoned-art-and-copyright) - [Have there been major developments in the Langlands Program in the number field setting since 2010?](https://mathoverflow.net/questions/507242/have-there-been-major-developments-in-the-langlands-program-in-the-number-field) - [JSON Parser in C++](https://codereview.stackexchange.com/questions/301080/json-parser-in-c) - [Workbench on Spring'26 sandbox: OAUTH\_APPROVAL\_ERROR\_GENERIC](https://salesforce.stackexchange.com/questions/438640/workbench-on-spring26-sandbox-oauth-approval-error-generic) - [Is there any way of moving the symbol vertically wrt the notehead?](https://music.stackexchange.com/questions/143091/is-there-any-way-of-moving-the-symbol-vertically-wrt-the-notehead) - [How do I stop the radidons beak from cracking?](https://worldbuilding.stackexchange.com/questions/272416/how-do-i-stop-the-radidons-beak-from-cracking) - [How can I maintain tension in a PF2e, a system with unlimited out-of-combat healing?](https://rpg.stackexchange.com/questions/218576/how-can-i-maintain-tension-in-a-pf2e-a-system-with-unlimited-out-of-combat-heal) - [Dual passports (UK/HK) holder entering & leaving the US](https://travel.stackexchange.com/questions/203124/dual-passports-uk-hk-holder-entering-leaving-the-us) - ["Sed nescio quomodo nihil tam absurde dici potest quod non dicatur ab aliquo philosophorum." - Why "quod" and not "ut" or "quam"?](https://latin.stackexchange.com/questions/27062/sed-nescio-quomodo-nihil-tam-absurde-dici-potest-quod-non-dicatur-ab-aliquo-phi) - [(I Cor 2:16) What actually \*is\* the "mind of Christ"? Is it the Spirit of knowledge, wisdom, understanding, counsel and might in Isa 11:2?](https://hermeneutics.stackexchange.com/questions/114138/i-cor-216-what-actually-is-the-mind-of-christ-is-it-the-spirit-of-knowle) - [Looking for an old physics lab meme (early 2000s)](https://physics.stackexchange.com/questions/868126/looking-for-an-old-physics-lab-meme-early-2000s) - [Batcher's sort in Java: a θ(N log N log N) sorting algorithm](https://codereview.stackexchange.com/questions/301081/batchers-sort-in-java-a-%CE%B8n-log-n-log-n-sorting-algorithm) - [Arrange 11 (or fewer) squares that will be colored](https://puzzling.stackexchange.com/questions/136808/arrange-11-or-fewer-squares-that-will-be-colored) - [What did John Austin (died 1859) mean by habit, habitual(ly)?](https://philosophy.stackexchange.com/questions/135453/what-did-john-austin-died-1859-mean-by-habit-habitually) - [Coming-of-age short story involving a boy abducted by aliens](https://scifi.stackexchange.com/questions/302964/coming-of-age-short-story-involving-a-boy-abducted-by-aliens) - [Approximating a polynomial with one with a particular Galois group](https://mathoverflow.net/questions/507277/approximating-a-polynomial-with-one-with-a-particular-galois-group) - [GCC miscompiles long chains of overloaded \`operator,\`](https://stackoverflow.com/questions/79872387/gcc-miscompiles-long-chains-of-overloaded-operator) - [Efficiency when converting camelCase to snake\_case](https://codereview.stackexchange.com/questions/301067/efficiency-when-converting-camelcase-to-snake-case) - [My direct manager accepts my timesheet, RM goes back in and takes away some of my hours](https://workplace.stackexchange.com/questions/203103/my-direct-manager-accepts-my-timesheet-rm-goes-back-in-and-takes-away-some-of-m) - [Where are the words? A connect wall](https://puzzling.stackexchange.com/questions/136800/where-are-the-words-a-connect-wall) - [Intuitive analysis of d'Alembert's solution to the 1+1D wave equation](https://physics.stackexchange.com/questions/868193/intuitive-analysis-of-dalemberts-solution-to-the-11d-wave-equation) - [Construction of a large stealth spacecraft](https://worldbuilding.stackexchange.com/questions/272415/construction-of-a-large-stealth-spacecraft) [Question feed](https://stackoverflow.com/feeds/question/66992585 "Feed of this question and its answers") # Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. ![](https://stackoverflow.com/posts/66992585/ivc/b2a4?prg=f420b4f9-cf6a-45f5-a265-d6a1b7a03d68) lang-py # Why are you flagging this comment? Probable spam. This comment promotes a product, service or website while [failing to disclose the author's affiliation](https://stackoverflow.com/help/promotion). Unfriendly or contains harassment/bigotry/abuse. This comment is unkind, insulting or attacks another person or group. Learn more in our [Abusive behavior policy](https://stackoverflow.com/conduct/abusive-behavior). Not needed. This comment is not relevant to the post. ``` ``` Enter at least 6 characters Something else. A problem not listed above. Try to be as specific as possible. ``` ``` Enter at least 6 characters Flag comment Cancel You have 0 flags left today ![](https://stackoverflow.com/js-false.gif) ![](https://stackoverflow.com/js-true.gif) # ![Illustration of upvote icon after it is clicked](https://stackoverflow.com/Content/Img/modal/img-upvote.png?v=fce73bd9724d) # Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. **Upvoting** indicates when questions and answers are useful. [What's reputation and how do I get it?](https://stackoverflow.com/help/whats-reputation) Instead, you can save this post to reference later. Save this post for later Not now ##### [Stack Overflow](https://stackoverflow.com/) - [Questions](https://stackoverflow.com/questions) - [Help](https://stackoverflow.com/help) - [Chat](https://chat.stackoverflow.com/?tab=explore) ##### [Business](https://stackoverflow.co/) - [Stack Internal](https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) - [Stack Data Licensing](https://stackoverflow.co/data-licensing/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=data-licensing) - [Stack Ads](https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) ##### [Company](https://stackoverflow.co/) - [About](https://stackoverflow.co/) - [Press](https://stackoverflow.co/company/press/) - [Work Here](https://stackoverflow.co/company/work-here/) - [Legal](https://stackoverflow.com/legal) - [Privacy Policy](https://stackoverflow.com/legal/privacy-policy) - [Terms of Service](https://stackoverflow.com/legal/terms-of-service/public) - [Contact Us](https://stackoverflow.com/contact) - Cookie Settings - [Cookie Policy](https://policies.stackoverflow.co/stack-overflow/cookie-policy) ##### [Stack Exchange Network](https://stackexchange.com/) - [Technology](https://stackexchange.com/sites#technology) - [Culture & recreation](https://stackexchange.com/sites#culturerecreation) - [Life & arts](https://stackexchange.com/sites#lifearts) - [Science](https://stackexchange.com/sites#science) - [Professional](https://stackexchange.com/sites#professional) - [Business](https://stackexchange.com/sites#business) - [API](https://api.stackexchange.com/) - [Data](https://data.stackexchange.com/) - [Blog](https://stackoverflow.blog/?blb=1) - [Facebook](https://www.facebook.com/officialstackoverflow/) - [Twitter](https://twitter.com/stackoverflow) - [LinkedIn](https://linkedin.com/company/stack-overflow) - [Instagram](https://www.instagram.com/thestackoverflow) Site design / logo © 2026 Stack Exchange Inc; user contributions licensed under [CC BY-SA](https://stackoverflow.com/help/licensing) . rev 2026.1.22.38918
Readable Markdownnull
Shard169 (laksa)
Root Hash714406497480128969
Unparsed URLcom,stackoverflow!/questions/66992585/how-does-one-use-pytorch-cuda-with-an-a100-gpu s443