# Machine Learning in Elixir: Some remarks on chapter 8 version B2.0 and cuda

**URL:** <https://forum.devtalk.com/t/machine-learning-in-elixir-some-remarks-on-chapter-8-version-b2-0-and-cuda/140530>\
**Category:** PragProg Customers\
**Tags:** book-machine-learning-in-elixir, cuda\
**Created:** [21 January 2024 09:24 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-some-remarks-on-chapter-8-version-b2-0-and-cuda/140530 "2024-01-21T09:24:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pieteeken](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@pieteeken](https://forum.devtalk.com/u/pieteeken)\
**Post date:** [23 January 2024 16:34 UTC](https://forum.devtalk.com/t/machine-learning-in-elixir-some-remarks-on-chapter-8-version-b2-0-and-cuda/140530/2 "2024-01-23T16:34:27Z")

</div>

The sentence “export PATH=/usr/local/cuda-12./bin${PATH:+:${PATH}}” must be removed/

And the sentence “export LD\_LIBRARY\_PATH=/usr/local/cuda-12.3/lib64  
${LD\_LIBRARY\_PATH:+:${LD\_LIBRARY\_PATH}}” should be one line.  
I discovered that because I did “source .bashrc” and got an error.

Furthermore you can add to the cuda part the next script because you get the warning a numan node is missing.  
I don’t know if it is necessesary, cause I don’t know what a numan node is, but anyway…

* * *

#!/bin/bash  
if [[“$EUID” -ne 0]]; then  
echo “Please run as root.”  
exit 1  
fi  
PCI\_ID=$(lspci | grep “VGA compatible controller: NVIDIA Corporation” | cut -d’ ’ -f1)  
PCI\_ID=“0000:$PCI\_ID”  
FILE=/sys/bus/pci/devices/$PCI\_ID/numa\_node  
echo Checking $FILE for NUMA connection status…  
if [[-f “$FILE”]]; then  
CURRENT\_VAL=$(cat $FILE)  
if [[“$CURRENT\_VAL” -eq -1]]; then  
echo Setting connection value from -1 to 0.   
echo 0 \> $FILE  
else  
echo Current connection value of $CURRENT\_VAL is not -1.  
fi  
else  
echo $FILE does not exist to update.  
exit 1  
fi

---

_[View the full topic](https://forum.devtalk.com/t/machine-learning-in-elixir-some-remarks-on-chapter-8-version-b2-0-and-cuda/140530)._
