Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
755fcbbf
Commit
755fcbbf
authored
Oct 07, 2022
by
Bruno Mongazon-Cazavet
Committed by
Robert Schmidt
Oct 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make --noavx512 implicit if host does not have avx512
parent
e0a8c824
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
cmake_targets/build_oai
cmake_targets/build_oai
+15
-0
No files found.
cmake_targets/build_oai
View file @
755fcbbf
...
@@ -613,6 +613,21 @@ function main() {
...
@@ -613,6 +613,21 @@ function main() {
cd
$DIR
/
$BUILD_DIR
/build
cd
$DIR
/
$BUILD_DIR
/build
if
[[
${#
CMAKE_C_FLAGS
[@]
}
>
0
]]
;
then
CMAKE_CMD
=
"
$CMAKE_CMD
-DCMAKE_C_FLAGS=
\"
${
CMAKE_C_FLAGS
[*]
}
\"
"
;
fi
if
[[
${#
CMAKE_C_FLAGS
[@]
}
>
0
]]
;
then
CMAKE_CMD
=
"
$CMAKE_CMD
-DCMAKE_C_FLAGS=
\"
${
CMAKE_C_FLAGS
[*]
}
\"
"
;
fi
if
[[
${#
CMAKE_CXX_FLAGS
[@]
}
>
0
]]
;
then
CMAKE_CMD
=
"
$CMAKE_CMD
-DCMAKE_CXX_FLAGS=
\"
${
CMAKE_CXX_FLAGS
[*]
}
\"
"
;
fi
if
[[
${#
CMAKE_CXX_FLAGS
[@]
}
>
0
]]
;
then
CMAKE_CMD
=
"
$CMAKE_CMD
-DCMAKE_CXX_FLAGS=
\"
${
CMAKE_CXX_FLAGS
[*]
}
\"
"
;
fi
# if --noavx512 is not specified the AVX512 equals "True" by default
# override AVX512 to "False" if processor does not have avx512
# this avoids having to specify --noavx512 systematically
if
[
-f
/proc/cpuinfo
]
;
then
if
grep
-q
avx512 /proc/cpuinfo
then
echo_info
"Processor has avx512 intrinsics"
else
echo_info
"Processor does not have avx512 intrinsics"
echo_info
"Forcing AVX512 to False"
AVX512
=
"False"
fi
fi
# for historical reasons we build in a subdirectory cmake_targets/XYZ/build,
# for historical reasons we build in a subdirectory cmake_targets/XYZ/build,
# e.g., cmake_targets/ran_build/build, hence the ../../..
# e.g., cmake_targets/ran_build/build, hence the ../../..
CMAKE_CMD
=
"
$CMAKE_CMD
-DAVX512=
\"
${
AVX512
[*]
}
\"
-DAVX2=
\"
${
AVX2
[*]
}
\"
../../.."
CMAKE_CMD
=
"
$CMAKE_CMD
-DAVX512=
\"
${
AVX512
[*]
}
\"
-DAVX2=
\"
${
AVX2
[*]
}
\"
../../.."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment