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

something wrong in the benchmark code #10

Open
Courtesy-Xs opened this issue Nov 3, 2021 · 0 comments
Open

something wrong in the benchmark code #10

Courtesy-Xs opened this issue Nov 3, 2021 · 0 comments

Comments

@Courtesy-Xs
Copy link

Hi, I guess there is a problem in your benchmark code.

sampl = np.random.uniform(low=-1.0, high=1.0, size=(1000000, 128))
gadgetCPU = SpeedTorch.DataGadget( 'data.npy', CPUPinn = True )
indexess = np.random.randint(0,1000000, 131072)
gadgetCPU.insertData(u_embeddings.weight.data,  indexess )

gadgetCPU is initialized and it's shape is (1000000,128), but the size of indexes is 131072 and when I copy the code and run on my docker environment, I came across an error like this:

self.CUPYcorpus[indexes] = cupy.fromDlpack( to_dlpack( dataObject ) )
SystemError: error return without exception set

And I change the sampl size and it works fine

benchmark code link
https://colab.research.google.com/drive/1b3QpfSETePo-J2TjyO6D2LgTCjVrT1lu#scrollTo=04iE5HtWYqOz&uniqifier=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant