(CommandList children: [ (C {(echo)} {(DQ ("Checking for CUDA and installing."))}) (If arms: [ (if_arm cond: [ (Sentence child: (Pipeline children:[(C {(dpkg-query)} {(-W)} {(cuda)})] negated:True) terminator: <Op_Semi ";"> ) ] action: [ (C {(curl)} {(-O)} {(http) (Lit_Other ":") ( //developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_8.0.61-1_amd64.deb ) } ) (C {(dpkg)} {(-i)} {(./cuda-repo-ubuntu1404_8.0.61-1_amd64.deb)}) (C {(apt-get)} {(update)}) (C {(apt-get)} {(install)} {(cuda)} {(-y)}) (C {(apt-get)} {(install)} {(linux-headers-) (CommandSubPart command_list: (CommandList children:[(C {(uname)} {(-r)})]) left_token: <Left_CommandSub "$("> spids: [108 112] ) } {(-y)} ) ] spids: [-1 70] ) ] spids: [-1 116] ) (C {(nvidia-smi)}) ] )