Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants