{"action":"created","issue":{"url":"https://api.github.com/repos/system76/docs/issues/84","repository_url":"https://api.github.com/repos/system76/docs","labels_url":"https://api.github.com/repos/system76/docs/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/system76/docs/issues/84/comments","events_url":"https://api.github.com/repos/system76/docs/issues/84/events","html_url":"https://github.com/system76/docs/issues/84","id":323958829,"node_id":"MDU6SXNzdWUzMjM5NTg4Mjk=","number":84,"title":"PopOS 18.04: CUDA Toolkit 9.2 needs packaging; Should use \"CUDA samples\" Installation and Make as regression tests; Install Instructions for 9.1 and 9.2 on 18.04 are included; Evidence shows alternate CUDA packaging would be easier for all.","user":{"login":"BStudent","id":19792522,"node_id":"MDQ6VXNlcjE5NzkyNTIy","avatar_url":"https://avatars1.githubusercontent.com/u/19792522?v=4","gravatar_id":"","url":"https://api.github.com/users/BStudent","html_url":"https://github.com/BStudent","followers_url":"https://api.github.com/users/BStudent/followers","following_url":"https://api.github.com/users/BStudent/following{/other_user}","gists_url":"https://api.github.com/users/BStudent/gists{/gist_id}","starred_url":"https://api.github.com/users/BStudent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BStudent/subscriptions","organizations_url":"https://api.github.com/users/BStudent/orgs","repos_url":"https://api.github.com/users/BStudent/repos","events_url":"https://api.github.com/users/BStudent/events{/privacy}","received_events_url":"https://api.github.com/users/BStudent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":33,"created_at":"2018-05-17T10:14:01Z","updated_at":"2018-07-09T21:52:10Z","closed_at":null,"author_association":"NONE","body":"# Overview: The Current State\r\n![image](https://user-images.githubusercontent.com/19792522/40171370-eb8ce746-597f-11e8-919f-36b6b1c80910.png)\r\n- The ubuntu cuda 9.1 deb packages _appear_ to be incomplete - missing libraries, headers, tools, and samples.  On closer inspection, while some components - most critically, cuda samples - are indeed not present, most of the remaining issues are due to the fact that expected symbolic links are not being created, expected paths and environment variables are not being set.  Much of this is attributable to not following nvidia's best-practices for configuration that are intended to allow for side-by-side installs of different CUDA versions.  Some inspection of earlier packages (e.g. 8, 7) indicate that they are all made from the same template and subject to the same issues.\r\n- About two weeks after the 18.04 release, NVidia pushed CUDA 9.2.88, which is overall more compatible with 18.04, but only explicitly states support through release 17.10.\r\n- I tested CUDA 9.2, installed from nvidia deb packages, with an ubuntu/ppa-packaged nvidia graphics driver for 396.26 that was temporarily available in a maintainer's ppa.  I have now set up a mirror of that installer in a separate ppa, detailed in a section below, so that others can reproduce it.\r\n- The 396.26 install and subsequent CUDA install each required some minor tweaking by hand in synaptic, but once installed had excellent stability and performance.  In particular, the extensive \"CUDA samples\" Makefile, which is a 10-15 minute build on and Intel i9 X-class processor with 128GB memory, ran to completion without error, and the compute-intensive examples performed well.\r\n- It is notable that CUDA-based developers use the installation and make of these sample files as a de facto regression test for correct installation of CUDA and its interaction with other subsystems such as OpenGL.  \r\n- Moreover, these sample files are not included in the debian-based CUDA packages.  They can be downloaded separately from other CUDA code, installed, and built individually or as a group via make: I downloaded the 9.1 version of CUDA samples sources after installing the 9.1 debian-based packages and found that the install process itself identified many apparently missing libraries and misconfigured paths.  Running the makefile for CUDA samples against the debian-based CUDA install identified further misconfiguration, and ultimately crashed before completion.\r\n- Again, this is the de facto regression test used by CUDA devs.  It's good to have one. \r\n"},"comment":{"url":"https://api.github.com/repos/system76/docs/issues/comments/403632181","html_url":"https://github.com/system76/docs/issues/84#issuecomment-403632181","issue_url":"https://api.github.com/repos/system76/docs/issues/84","id":403632181,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzYzMjE4MQ==","user":{"login":"BStudent","id":19792522,"node_id":"MDQ6VXNlcjE5NzkyNTIy","avatar_url":"https://avatars1.githubusercontent.com/u/19792522?v=4","gravatar_id":"","url":"https://api.github.com/users/BStudent","html_url":"https://github.com/BStudent","followers_url":"https://api.github.com/users/BStudent/followers","following_url":"https://api.github.com/users/BStudent/following{/other_user}","gists_url":"https://api.github.com/users/BStudent/gists{/gist_id}","starred_url":"https://api.github.com/users/BStudent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BStudent/subscriptions","organizations_url":"https://api.github.com/users/BStudent/orgs","repos_url":"https://api.github.com/users/BStudent/repos","events_url":"https://api.github.com/users/BStudent/events{/privacy}","received_events_url":"https://api.github.com/users/BStudent/received_events","type":"User","site_admin":false},"created_at":"2018-07-09T21:52:10Z","updated_at":"2018-07-09T21:52:10Z","author_association":"NONE","body":"OK say the word when it's ready and I'll try that one-liner on my oryxpro2.  I've held it back from installing cuda or tf-type frameworks but otherwise subjected it to normal use.  Good test case."}}
{"actor":{"display_login":"BStudent"}}