-
Notifications
You must be signed in to change notification settings - Fork 7
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
override target: permits to override target setting an environment variable #59
override target: permits to override target setting an environment variable #59
Conversation
…ariable `SPACK_TARGET_TYPE`
236bc04
to
842c0a4
Compare
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
If I understand this correctly, adding specific targets (haswell, sandybridge, arm6, etc) would cover the first two portions of the your string, and adding the network into our architecture would cover the last portion. Would that completely cover your use case? I don't like reintroducing site-generated targets like we had pre- spack#561. It prevents us from standardizing things. At the time of that PR we expected to need to add networks to the architecture spec eventually, now might be that time. |
@becker33 You're completely correct about my use case coverage. I don't mind if the PR is not merged, but I think it may be useful to fill the gap in the meanwhile. If you think it's distracting people, or fostering bad habits, feel free to close the PR on the LLNL repo. That said, I see nothing wrong in having the possibility to customize the architecture with a site-dependent string. I understand that if we are going to distribute binary packages (and we are still pursuing that, right?) we can't expect a custom string to match, but I also believe that if somebody has custom needs he cannot expect a binary package. |
In addition to binary installation, we also have plans to use the target to eventually inject compiler optimizations, like how gcc can take an I think the crux of my concern is that I don't trust users to use caution with customization abilities that we provide them but that also conflict with other features. But that might be a philosophical difference that should be discussed more broadly on the upstream repo. |
I would be fine if you warn me after you give me rope. I'll make sure I don't use it to hang myself 😄 But really, I don't have strong opinions on this. Honestly, if network and target detection were already in place and working correctly I don't know if I would have written these 10 lines. |
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
…ariable `SPACK_TARGET_TYPE` (#59)
The following:
$export SPACK_TARGET_TYPE=x86_E5v2_IntelIB
will override the default target of the architecture: