Skip to content

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Apr 9, 2018

avx_mathfun is used by both TH and ATen code; if we want to turn
TH into a standalone library, we need a common dependency for the
two libraries. That's this package.

This patch is part of a series. The individual changes here may make more sense when seen in context; the full context is at #6188. I am splitting this patch series into separate CI-able PRs because I made a mistake that affects Windows only, and I am trying to figure out where the mistake is.

avx_mathfun is used by both TH and ATen code; if we want to turn
TH into a standalone library, we need a common dependency for the
two libraries.  That's this package.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
@apaszke
Copy link
Contributor

apaszke commented Apr 9, 2018

Are we planning to always be able to build TH without ATen? I got a feeling like we were shifting towards putting everything there, and TH was going to disappear?

@fmassa
Copy link
Member

fmassa commented Apr 9, 2018

Yes, I thought that ATen and TH were a single thing now? #6078 (comment)

@ezyang
Copy link
Contributor Author

ezyang commented Apr 9, 2018

When we do C10, we are necessarily going to introduce a new abstraction barrier between the operator definitions, and the core infrastructure code. This split won't be the traditional TH/ATen; we will need to move bits around, but it's helpful to have more cmake hygiene so it's easier to move things around (otherwise, ATen must be built and compiled as one piece. This is NOT the eventual desired end goal.)

Happy to debate if this is a good idea or not though :)

@cpuhrsch
Copy link
Contributor

cpuhrsch commented Apr 9, 2018

@ezyang, it's very likely we'll remove avx_mathfun.h from ATen in the future as it has proven itself to be imprecise under current C++ standards. I suggest we remove it now and add it later if it becomes necessary (we'll likely going to replace it with sleef).

@ezyang
Copy link
Contributor Author

ezyang commented Apr 9, 2018

I'm happy to skip this patch and remove avx_mathfun instead. This patch wasn't that much work to do either though, and doesn't make the removal any harder ;)

@ezyang ezyang closed this Apr 24, 2018
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.

4 participants