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

Bus error when testing #4

Open
doubleQ2018 opened this issue Sep 2, 2021 · 1 comment
Open

Bus error when testing #4

doubleQ2018 opened this issue Sep 2, 2021 · 1 comment

Comments

@doubleQ2018
Copy link

    pool = Pool(processes=args.world_size)
    results = []
    sigle_size = news_num//args.world_size
    for rank in range(args.world_size):
        start = sigle_size*rank
        end = sigle_size*(rank+1)
        if rank == args.world_size -1:
            end = news_num
        local_features = news_feature[start:end]
        result = pool.apply_async(sigle_process_infer, args=(rank, local_features, checkpoint, args))
        results.append(result)
    pool.close()
    pool.join()

    results = [x.get() for x in results]
    news_vecs = np.concatenate(results,0)

Bus error happened within these code.

@staoxiao
Copy link
Contributor

Hi, could you provide more details for this error? The code has been tested and runs well on our machine.

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

2 participants