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

CUBLAS_STATUS_INVALID_VALUE #120

Open
lxy1998 opened this issue Mar 21, 2023 · 0 comments
Open

CUBLAS_STATUS_INVALID_VALUE #120

lxy1998 opened this issue Mar 21, 2023 · 0 comments

Comments

@lxy1998
Copy link

lxy1998 commented Mar 21, 2023

When I run the code below ,it throws an error CUBLAS_STATUS_INVALID_VALUE and terminates. tsnecuda.test() can run Correctly.

from tsnecuda import TSNE
import pickle

if __name__ == '__main__':
    # tsnecuda.test()
    
    X = pickle.load(open('/home/featurize/data/emb_all_768/emb_all_768.data', 'rb'))
    print(X.shape)
    # (1694135, 768)

    '''t-SNE-cuda'''
    X_tsne = TSNE(n_components=2, perplexity=15, learning_rate=10).fit_transform(X)
    pickle.dump(X_tsne, open("/home/featurize/data/tsne_result.data", 'wb'), -1)

Error below:

CUBLAS error in file '/tsnecuda/src/util/cuda_utils.cu', line 101, error: CUBLAS_STATUS_INVALID_VALUE
terminating!
python: /tsnecuda/src/util/cuda_utils.cu:103: void __CublasSafeCall(cublasStatus_t, const char*, int): Assertion `0' failed.
[2]    23531 abort (core dumped)  python /home/featurize/work/EventTriplesExtraction/t_sne_cuda.py

Please tell me what causes this error and how to fix it, thank you!

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