Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample Validation Failure #669

Closed
24367452 opened this issue Jul 15, 2024 · 6 comments
Closed

Sample Validation Failure #669

24367452 opened this issue Jul 15, 2024 · 6 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@24367452
Copy link

Sample Validation Failure
I have successfully installed AIHWKIT via pip install aihwkit but when I run the following example :

from torch import Tensor
from aihwkit.nn import AnalogLinear

model = AnalogLinear(2, 2)
model(Tensor([[0.1, 0.2], [0.3, 0.4]]))

But there was an error :
···
Traceback (most recent call last):
File "E:\aihwkit_CNN\test.py", line 2, in
from aihwkit.nn import AnalogLinear
File "C:\Users\Administrator.conda\envs\cq\lib\site-packages\aihwkit\nn_init_.py", line 17, in
from aihwkit.nn.modules.container import AnalogSequential, AnalogWrapper
File "C:\Users\Administrator.conda\envs\cq\lib\site-packages\aihwkit\nn\modules\container.py", line 23, in
from aihwkit.nn.modules.base import AnalogLayerBase
File "C:\Users\Administrator.conda\envs\cq\lib\site-packages\aihwkit\nn\modules\base.py", line 22, in
from aihwkit.simulator.tiles.module import TileModule
File "C:\Users\Administrator.conda\envs\cq\lib\site-packages\aihwkit\simulator\tiles_init_.py", line 17, in
from aihwkit.simulator.tiles.analog import AnalogTile
File "C:\Users\Administrator.conda\envs\cq\lib\site-packages\aihwkit\simulator\tiles\analog.py", line 21, in
from aihwkit.simulator.tiles.rpucuda import RPUCudaSimulatorTileWrapper
File "C:\Users\Administrator.conda\envs\cq\lib\site-packages\aihwkit\simulator\tiles\rpucuda.py", line 24, in
from aihwkit.simulator.parameters.base import RPUConfigGeneric
File "C:\Users\Administrator.conda\envs\cq\lib\site-packages\aihwkit\simulator\parameters_init_.py", line 31, in
from .training import UpdateParameters
File "C:\Users\Administrator.conda\envs\cq\lib\site-packages\aihwkit\simulator\parameters\training.py", line 20, in
from .helpers import _PrintableMixin
File "C:\Users\Administrator.conda\envs\cq\lib\site-packages\aihwkit\simulator\parameters\helpers.py", line 20, in
from aihwkit.simulator import rpu_base
ImportError: DLL load failed while importing rpu_base: The specified module could not be found.
···
What's the reason for this?

@24367452
Copy link
Author

Hello, can you guide me on how to resolve this? @maljoras

@ShiJLdot
Copy link

I have the same problem,have you solved it?

@24367452
Copy link
Author

I haven't solved it yet. If you have already solved this problem, please let me know and I will be very grateful!

我有同样的问题,你解决了吗?

@ShiJLdot
Copy link

ShiJLdot commented Jul 28, 2024 via email

@PabloCarmona PabloCarmona self-assigned this Aug 5, 2024
@PabloCarmona
Copy link
Collaborator

PabloCarmona commented Aug 5, 2024

Hello @24367452, can you give more info on what OS and versions of Python you are using to run this script?
@ShiJLdot is saying that Linux is working but I'm not sure if that is a problem with the OS or how the package is installed.

If this is in Windows, are you using the python shell or WSL? The best way and less error-prone to do it is through WSL.

@PabloCarmona PabloCarmona added bug Something isn't working help wanted Extra attention is needed question Further information is requested status:reviewing and removed bug Something isn't working labels Aug 5, 2024
@PabloCarmona
Copy link
Collaborator

We are closing this issue as it seems to be a problem of the user OS and can be solved using WSL in the case of Windows and using pip instead of conda for OSX systems. We planned a new bundle version to be compatible with OSX in conda-forge here #676.

If you have any new concerns or problems @24367452 let us know in a new issue or reopen this. Thank you so much for working on the project and if we can help you with anything more don't hesitate to let us know! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants