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

Fix non-parallel #13

Merged
merged 6 commits into from
Nov 29, 2020
Merged

Fix non-parallel #13

merged 6 commits into from
Nov 29, 2020

Conversation

lorenzoh
Copy link
Owner

@lorenzoh lorenzoh commented Nov 29, 2020

This fixes #12 by making it possible to create DataLoaders without having started Julia with multiple threads. The data loading is then performed on the main thread. It is still encouraged to start Julia with multiple threads to benefit from the paralllelism.

@lorenzoh lorenzoh mentioned this pull request Nov 29, 2020
)

Threads.nthreads() > 1 || useprimary || error(
"Julia is running with on thread only, either pass `useprimary = true` or " *
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo, should be: "one" not "on".

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, Cheers!

@lorenzoh lorenzoh merged commit a285a54 into master Nov 29, 2020
@lorenzoh lorenzoh deleted the fix-non-parallel branch November 29, 2020 10:02
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

Successfully merging this pull request may close these issues.

Tuples don't work!
2 participants