Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
22640 Discussions

installing and fixing errors for pytorch gpu arc a750

user_
Beginner
1,368 Views

Hi i am very new in coding and deep learning so i followed this steps to install and use Pytorch

but when i used Cifar10 sample i got RuntimeError: Numpy is not available i tried to downgrade to 1.26 so conda also try to downgrade mkl to 2023.1 after accept that my environment raised many errors so i deleted and started over make new environment

i have few questions

first did i install correctly?

second how can i fix this error and test Cifar10 sample?

third i am using visual studio code does it ok and safe to use without getting errors?

fourth i used 3.9 python during creating new environment which latest version i can use without any problem? 

thank you

 

Steps:

0)

Gpu driver

0.png

1)

Visual Studio, Desktop development with C++

1.png

2)

install all of oneApi base toolkit 2024.2.1

 

3)

installing anaconda and

conda create --name pytorch-arc python=3.9 -y
conda activate pytorch-arc
conda install anaconda::jupyter -y

 

call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"

3.png

 

4)

conda install pkg-config libuv -y

python -m pip install torch==2.1.0.post3 torchvision==0.16.0.post3 torchaudio==2.1.0.post3 intel-extension-for-pytorch==2.1.40+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/mtl/us/

pip install dpcpp-cpp-rt==2024.2.1 mkl-dpcpp==2024.2.1

 

5)

python -c "import torch; import intel_extension_for_pytorch as ipex; print(torch.__version__); print(ipex.__version__); [print(f'[{i}]: {torch.xpu.get_device_properties(i)}') for i in range(torch.xpu.device_count())];"

5.png

 

0 Kudos
3 Replies
DeancR_Intel
Moderator
1,069 Views

Hi user_,

 

Apologies for the delay on my response. Could you let me know the purpose of your work so we can check it further?

 

If you have any questions or need further information, please let me know.

 

Best regards,

 

Dean R.

Intel Customer Support Technician

 

 

0 Kudos
DeancR_Intel
Moderator
989 Views

Hi user_,

 

I wanted to follow up on the previous message regarding your inquiry. Have you had a chance to review it? If you have any questions or need further information, please let me know.

 

Best regards,

 

Dean R.

Intel Customer Support Technician


0 Kudos
DeancR_Intel
Moderator
911 Views

Hi user_,

 

Since I haven't received a response from you, I will be closing this inquiry. If you need further assistance, please submit a new question, as this thread will no longer be monitored.

 

Best regards,

 

Dean R.

Intel Customer Support Technician



0 Kudos
Reply