Skip to content

add CUDA support in CP2K easyblock#850

Merged
boegel merged 4 commits intoeasybuilders:developfrom
gppezzi:cp2k_cray
Mar 8, 2016
Merged

add CUDA support in CP2K easyblock#850
boegel merged 4 commits intoeasybuilders:developfrom
gppezzi:cp2k_cray

Conversation

@gppezzi
Copy link
Copy Markdown
Contributor

@gppezzi gppezzi commented Mar 2, 2016

Same as for boost, this is a tweaked version of cp2k.py.

by @lucamar

@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1736/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 2, 2016

Same remark as for Boost: this should be reworked to reuse the efforts in cp2k.py, rather than copy-paste; this is a maintenance nightmare as is...

@gppezzi
Copy link
Copy Markdown
Contributor Author

gppezzi commented Mar 2, 2016

I just did the diff, we're actually just adding CUDA support:

         # CUDA
         cuda = get_software_root('CUDA')
         if cuda:
             options['DFLAGS'] += ' -D__ACC -D__DBCSR_ACC'
             options['LIBS'] += ' -lcudart -lcublas -lcufft -lrt'
             options['NVCC'] = ' nvcc'

It looks like harmless to add this to the existing cp2k easyblock, what do you say ?

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 2, 2016

Looks reasonable, yeah.

Can you update this PR to actually make it modify the existing cp2k.py?

cp easybuild/easyblocks/c/cp2kcray.py easybuild/easyblocks/c/cp2k.py
git rm easybuild/easyblocks/c/cp2kcray.py
git commit -a -m "..."
...

@boegel boegel added this to the v2.7.0 milestone Mar 2, 2016
@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1741/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1742/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@hpcugentbot
Copy link
Copy Markdown

Easyblocks unit test suite PASSed (see https://jenkins1.ugent.be/job/easybuild-easyblocks-pr-builder/1743/console for more details).

This pull request is now ready for review/testing.

Please try and find someone who can tackle this; contact @boegel if you're not sure what to do.

@gppezzi
Copy link
Copy Markdown
Contributor Author

gppezzi commented Mar 8, 2016

@boegel cuda support is integrated into the existing easyblock, can you please review?

@lucamar any remarks?

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 8, 2016

lgtm, thanks @gppezzi and @lucamar!

@boegel
Copy link
Copy Markdown
Member

boegel commented Mar 8, 2016

Tested a couple of CP2K builds on top of this, (still) working fine, so good to go.

boegel added a commit that referenced this pull request Mar 8, 2016
@boegel boegel merged commit c574358 into easybuilders:develop Mar 8, 2016
@boegel boegel changed the title Cp2k 3.0 Cray support add CUDA support in CP2K easyblock Mar 15, 2016
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.

3 participants