Skip to content

Conversation

iseeyuan
Copy link
Contributor

@iseeyuan iseeyuan commented Dec 9, 2020

Stack from ghstack:

TH folder has some kernal implementations referenced by ATen/native. It goes with ATen/native in the follow-up diff for per-app selective build. ATen/Context.cpp stays in the lib level and should not reference to symbols in TH directly.

It's a simple change in this diff, as getTHDefaultAllocator() did nothing but returns c10::GetCPUAllocator(). Use c10::GetCPUAllocator() instead of going extra route through getTHDefaultAllocator().

Differential Revision: D24147914

TH folder has some kernal implementations referenced by ATen/native. It goes with ATen/native in the follow-up diff for per-app selective build. ATen/Context.cpp stays in the lib level and should not reference to symbols in TH directly.

It's a simple change in this diff, as ```getTHDefaultAllocator()``` did nothing but returns ```c10::GetCPUAllocator()```. Use ```c10::GetCPUAllocator()``` instead of going extra route through ```getTHDefaultAllocator()```.

Differential Revision: [D24147914](https://our.internmc.facebook.com/intern/diff/D24147914/)

[ghstack-poisoned]
iseeyuan added a commit that referenced this pull request Dec 9, 2020
TH folder has some kernal implementations referenced by ATen/native. It goes with ATen/native in the follow-up diff for per-app selective build. ATen/Context.cpp stays in the lib level and should not reference to symbols in TH directly.

It's a simple change in this diff, as ```getTHDefaultAllocator()``` did nothing but returns ```c10::GetCPUAllocator()```. Use ```c10::GetCPUAllocator()``` instead of going extra route through ```getTHDefaultAllocator()```.

Differential Revision: [D24147914](https://our.internmc.facebook.com/intern/diff/D24147914/)

ghstack-source-id: 118151905
Pull Request resolved: #49068
@codecov
Copy link

codecov bot commented Dec 9, 2020

Codecov Report

Merging #49068 (a5faf9e) into gh/iseeyuan/105/base (3f9ff48) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@                  Coverage Diff                  @@
##           gh/iseeyuan/105/base   #49068   +/-   ##
=====================================================
  Coverage                 80.73%   80.73%           
=====================================================
  Files                      1871     1871           
  Lines                    201759   201759           
=====================================================
+ Hits                     162888   162892    +4     
+ Misses                    38871    38867    -4     

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 41fd51d.

@facebook-github-bot facebook-github-bot deleted the gh/iseeyuan/105/head branch December 13, 2020 15:17
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