ukaea / openmc_workshop

A selection of resources for learning openmc with particular focus on simulations relevant for fusion energy
https://slides.com/openmc_workshop/neutronics_workshop#/
39 stars 18 forks source link

add cmake back to allow embree build #234

Closed shimwell closed 3 years ago

shimwell commented 3 years ago

it appears cmake install via apt-get is needed in addition to the pip install cmake

Otherwise embree doesn't find cmake and the compile breaks

Screenshot from 2021-01-29 12-44-41

AI-Pranto commented 3 years ago

@Shimwell If we want to use pip install cmake, We have to add

ENV PATH=$PATH:$HOME/.local/bin

Unfortunately, I didn't notice in my previous PR.

shimwell commented 3 years ago

Nice, thanks for that extra info. I shall give it a go

shimwell commented 3 years ago

I added this

# need to make cmake  discoverable for subsequent compiles
ENV PATH=$PATH:$HOME/.local/bin

but it gives the same error as before

No worries, the double install for CMAKE is not perfect but we can live with it

Perhaps that error is related to the use of conda

AI-Pranto commented 3 years ago

https://github.com/ukaea/openmc_workshop/blob/4a488afa92fa863aa3087a15d3698f45d398a0df/Dockerfile#L36

This time, Will you give it a try with conda install -c conda-forge make compilers cmake -y. Hope this time it should work. Internet speed is very slow here :(

shimwell commented 3 years ago

I shall give it a go. Thanks