-
Notifications
You must be signed in to change notification settings - Fork 65
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
scatterAdd not working #5
Comments
@matthiasanderer I realized that the readme doesn't say you have to modify the TensorMath.lua for cutorch as well if you want to use GPU. I will update the readme.md when I have time |
same error: ./Game/card_tools.lua:30: attempt to call method 'scatterAdd' (a nil value) |
I've updated the readme, let me know if you are still seeing the issue. |
this is what i get now: in torch/install/share/ there is 5.1 while i have installed 5.2: im going to reinstall lua, torch and cuda toolkit |
i reinstalled everything, i copyed the file it gave me the same error ./Game/card_tools.lua:30: attempt to call method 'scatterAdd' (a nil value), then i run: TORCH_LUA_VERSION=LUA52 ./install.sh |
If you are seeing not enough memory, it means you are using luajit. make sure to run ./clean.sh before ./install.sh Also, when you run the install.sh command, make sure you see this line: |
still the same error very sad since its the only stuff id like to try |
do you have lua 5.2.4? ok i really dont know what i have done ( i have reinstalled torch and run lua install 5.3 instead of 5.2) but know i have managed to go through the error to get stuck on another one: Generating data ... |
No, I'm using lua 5.2.3 but 5.2.4 should work also. Can you paste what error you got after re-installing torch with the new tensormath.lua files? |
ok i really dont know what i have done ( i have reinstalled torch and run lua install 5.3 instead of 5.2) but know i have managed to go through the error to get stuck on another one: Generating data ... the is no folder in data callaed trainsample |
That is good news, it means it succeeded in generating the data. There is a problem in writing the data file. |
im pretty sure: TORCH_LUA_VERSION=LUA52 ./install.sh how did you you managed to make deepholdem play vs "Slumbot 2017"?? |
I can't get around this scatterAdd issue. I got it running on a google compute engine. But it just doesn't work locally. I have reinstalled torch a couple of times (5.2 and 5.3) and made sure the modified TensorMath.lua files were in place beforehand. I am out of ideas now. EDIT: just solved the issue. Running install.sh as sudo helped. |
@lh14576 I have the exact same error. With the modified TensorMath.lua files, it works on CPU but not on GPU. |
Somehow I do not get the scatterAdd solution to work:
I got torch from:
git clone https://github.com/torch/distro.git ~/torch --recursive
then in the torch folder changed TensorMath.lua as described...
and installed via:
TORCH_LUA_VERSION=LUA52 ./install.sh
(but installed cutorch via luarocks -> is that wrong?)
after all I get:
./Game/card_tools.lua:30: attempt to call method 'scatterAdd' (a nil value)
The text was updated successfully, but these errors were encountered: