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

redeclare examples as integration tests #87

Merged
merged 1 commit into from
Nov 6, 2015

Conversation

BenjaminW3
Copy link
Member

As has been noted in #77 the current examples are not really easy examples but represent more or less integration tests. Therefore they have been moved to test/integ.

@BenjaminW3
Copy link
Member Author

I have additionally added a vector addition single file example without additional includes using a single accelerator and without time measurement.

@BenjaminW3
Copy link
Member Author

When this is merged, I will add a first unit test for #79/#85 using boost.test.

@psychocoderHPC
Copy link
Member

Could you please split this pull request one for move examples to integration tests and one for the first easy example. It is easier to review.

{
// Calculate the number of elements to compute in this thread.
// The result is uniform for all but the last thread.
auto const elems(threadElemExtent + alpaka::math::min(acc, static_cast<unsigned long long>(0u), static_cast<unsigned long long>(numElements-(threadFirstElemIdx+threadElemExtent))));
Copy link
Member

Choose a reason for hiding this comment

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

independent of the point that we should move this in a separate pull request:

Might be we should create a alpaka trait/function for this line.

@BenjaminW3
Copy link
Member Author

The request has been split.

eval "${2}"
fi

cd "${oldPath}"
Copy link
Member

Choose a reason for hiding this comment

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

missing end of file newline

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@psychocoderHPC
Copy link
Member

after the missing EOF is added I can merge this pull request

psychocoderHPC added a commit that referenced this pull request Nov 6, 2015
redeclare examples as integration tests
@psychocoderHPC psychocoderHPC merged commit 60ca01b into alpaka-group:develop Nov 6, 2015
@BenjaminW3 BenjaminW3 deleted the topic-tests branch November 13, 2015 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants