{"id":20651855,"url":"https://github.com/jingshing/how-to-use-tesla-p40","last_synced_at":"2025-04-06T00:07:19.214Z","repository":{"id":147210933,"uuid":"618725053","full_name":"JingShing/How-to-use-tesla-p40","owner":"JingShing","description":"A manual for helping using tesla p40 gpu","archived":false,"fork":false,"pushed_at":"2024-11-16T08:02:45.000Z","size":2638,"stargazers_count":121,"open_issues_count":4,"forks_count":16,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T23:08:14.960Z","etag":null,"topics":["ai","gpu","manual","p40","stable-diffusion","vga"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JingShing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":"JingShing","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2023-03-25T06:51:04.000Z","updated_at":"2025-03-19T01:40:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"57bbee54-2809-4cd3-a193-1fd0fe917579","html_url":"https://github.com/JingShing/How-to-use-tesla-p40","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"e7fd607172960f942df2653c5e14d6099033a126"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FHow-to-use-tesla-p40","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FHow-to-use-tesla-p40/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FHow-to-use-tesla-p40/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingShing%2FHow-to-use-tesla-p40/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JingShing","download_url":"https://codeload.github.com/JingShing/How-to-use-tesla-p40/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415967,"owners_count":20935388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","gpu","manual","p40","stable-diffusion","vga"],"created_at":"2024-11-16T17:30:03.595Z","updated_at":"2025-04-06T00:07:19.191Z","avatar_url":"https://github.com/JingShing.png","language":null,"funding_links":["https://patreon.com/JingShing"],"categories":[],"sub_categories":[],"readme":"English | [繁體中文](README_TCH.md)\n# How to Use Tesla P40\nA guide to help you use the Tesla P40. The author encountered many problems during the installation of the P40, which is why they wrote this installation guide. Hopefully, it can help users who want to use the P40.\n\n  ![p40](image/p40.png)\n\n## Why Choose P40?\nThe P40 is a graphics card with computing power close to that of the 1080, which is not particularly remarkable, but it has 24GB of memory, which is a level that is difficult for most consumer cards on the market to reach. Although the computing power itself may not keep up with the times, it is a highly recommended entry-level card for AI training and use due to its low price and cost-effective memory, which can support most AI models provided online.\n\n![p40_data](image/p40_data.png)\n\n## Pros and Cons\n* Pros\n  * Large memory capacity (24GB)\n  * Relatively low price\n  * Suitable for AI training\n* Cons\n  * Not too high computing power\n  * No external display interface\n  * No active cooling\n  * Requires some hands-on skills and patience\n  * (Most) no warranty\n## Prerequisites\nBefore you start, you may need to prepare some things.\n\nA graphics card for displaying on the screen, a power supply large enough, a motherboard with ATX version recommended that can accommodate two graphics cards, two extra 6+2pin power supply interfaces, and an 8pin adapter interface for the P40. Additionally, it is recommended that you prepare cooling equipment because the P40 does not have active cooling and requires self-modification.\n\n![converter](image/converter.jpg)\n\n8(6+2) pin to 8 pin adapter\n\nThe hardware that the author prepared includes a 1200w Corsair power supply, a GTX 1080ti graphics card for display, and a P40 with a self-made cooling fan.\n\n  ![twin_card](image/twin_card.jpg)\n\nRegarding the system, it is recommended to use at least Windows 10 or a newer version. The author uses the latest version of Windows 11.\n\nBefore starting, it is necessary to change the BIOS settings to enable the detection of multiple graphics cards, otherwise the motherboard will give an error message.\n\n### BIOS Settings\nBefore installing the P40, please remember to modify the BIOS settings:\n\n* Enable Above 4G memory\n    * This option enables the motherboard to detect multiple graphics cards.\n* Disable CSM\n    * If not disabled, the Nvidia graphics card selection will give an error message.\nAfter setting, please remember to save and shut down.\n## Installing P40\nPlease install the P40 in the graphics card slot, and then try to enter the system. If you can enter the system, please proceed to the next step. If you cannot enter the system, please:\n\n1. Check if the motherboard supports multiple graphics cards or Nvidia graphics cards.\n2. Check if there is any problem with the power supply. The adapter should be two 6+2 pin connectors totaling 16 pins to 8 pins.\n3. Check if the slot is properly inserted.\nIf the above cannot solve your problem, you can raise it in Issues and let us help you figure it out.\n\nAfter entering the system\nPlease note that the following is an example using the Windows system, and this article is based on Win11 as the testing environment.\n\nYou may need to install Nvidia drivers. Here, the advantage of using the 1080ti is already evident. Because the P40 and 1090 use equal chips and architecture, the drivers can be interchanged. Of course, you can choose to install the studio version of the 1080 or Titan driver.\n\nAfter installing the driver, you may notice that the Tesla P40 graphics card is not detected in the Task Manager. Therefore, you need to modify the registry.\n\nPlease press ```WIN + R``` to open the Run window, then enter ```regedit``` to get into register table, and then enter ```HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\Class\\{4d36e968-e325-11ce-bfc1-08002be10318}\\0001 ``` in path to modify its content.\n* Modify AdapterType to 1\n* Modify FeatureScore to d1\n\nAdd Dword:\n\n* Fill in 1 for EnableMsHybrid\n* Fill in 7 for GridLicensedFeatures\n\n![regit](image/regit.png)\n\nAfter modifying the registry, you can choose to restart or disable and enable P40 in the device manager to see that P40 has been successfully called in the Task Manager.\n\n![task_manager](image/task_manage.png)\n\n## How to use the P40 graphics card?\nAfter completing the above, you may still be curious about how to use this graphics card.\n\nYou can open Settings, Display, Graphics, add an application, and then edit it to specify P40 to run a specific .exe application.\n\nThe following will use Stable Diffusion WebUI as an example:\n\n![setting1](image/setting.png)\n![setting2](image/setting2.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingshing%2Fhow-to-use-tesla-p40","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjingshing%2Fhow-to-use-tesla-p40","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingshing%2Fhow-to-use-tesla-p40/lists"}