File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ if(USE_FB_ONLY
53
53
glob_files_nohip (fb_only_sources_gpu
54
54
fb/src/*/*.cu )
55
55
56
- if (NOT FBGEMM_BUILDING_IN_FB_INTERNAL )
56
+ if (NOT FBGEMM_FBPKG_BUILD )
57
57
# NOTE: Some FB-internal code explicitly require an FB-internal
58
58
# environment to build, such as code that depends on NCCLX
59
59
list (FILTER fb_only_sources_cpu
Original file line number Diff line number Diff line change @@ -103,8 +103,10 @@ def from_args(cls, argv: List[str]):
103
103
print (f"[SETUP.PY] Other arguments: { other_args } " )
104
104
return FbgemmGpuBuild (setup_py_args , other_args )
105
105
106
- def onFBMachine (self ) -> bool :
107
- return os .environ .get ("HOSTNAME" , "" ).endswith ("facebook.com" )
106
+ def isFbpkgBuild (self ) -> bool :
107
+ # UNIFIED_FBPKG_NAME is set in build scripts for internal FBPKG build
108
+ # environments
109
+ return os .environ .get ("UNIFIED_FBPKG_NAME" ) is not None
108
110
109
111
def nova_flag (self ) -> Optional [int ]:
110
112
if "BUILD_FROM_NOVA" in os .environ :
@@ -320,11 +322,11 @@ def _get_cxx11_abi():
320
322
print ("[SETUP.PY] Include FB-internal code into the build ..." )
321
323
cmake_args .append ("-DUSE_FB_ONLY=ON" )
322
324
323
- if self .onFBMachine ():
325
+ if self .isFbpkgBuild ():
324
326
# NOTE: Some FB-internal code explicitly require an FB-internal
325
327
# environment to build, such as code that depends on NCCLX
326
- print ("[SETUP.PY] Build takes place in an FB-internal machine ..." )
327
- cmake_args .append ("-DFBGEMM_BUILDING_IN_FB_INTERNAL =ON" )
328
+ print ("[SETUP.PY] Setting FBPKG build flag ..." )
329
+ cmake_args .append ("-DFBGEMM_FBPKG_BUILD =ON" )
328
330
329
331
if self .args .cxxprefix :
330
332
logging .debug ("[SETUP.PY] Setting CMake flags ..." )
You can’t perform that action at this time.
0 commit comments