Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 257435 Details for
Bug 348964
fortran openmp checks in toolchain-funcs.eclass
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
toolchain-funcs.diff
toolchain-funcs.diff (text/plain), 1.51 KB, created by
Sébastien Fabbro (RETIRED)
on 2010-12-17 18:23:02 UTC
(
hide
)
Description:
toolchain-funcs.diff
Filename:
MIME Type:
Creator:
Sébastien Fabbro (RETIRED)
Created:
2010-12-17 18:23:02 UTC
Size:
1.51 KB
patch
obsolete
>Index: toolchain-funcs.eclass >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v >retrieving revision 1.103 >diff -u -b -B -r1.103 toolchain-funcs.eclass >--- toolchain-funcs.eclass 28 Oct 2010 04:16:27 -0000 1.103 >+++ toolchain-funcs.eclass 17 Dec 2010 18:18:23 -0000 >@@ -191,12 +191,13 @@ > return $([[ ${host} == *-mint* ]]) > } > >-# @FUNCTION: tc-has-openmp >+# @FUNCTION: gcc-has-openmp > # @USAGE: [toolchain prefix] > # @DESCRIPTION: >-# See if the toolchain supports OpenMP. >-tc-has-openmp() { >- local base="${T}/test-tc-openmp" >+# See if the toolchain gcc supports OpenMP. >+gcc-has-openmp() { >+ [[ $(tc-getCC) != *gcc* ]] && return 0 >+ local base="${T}/test-cc-openmp" > cat <<-EOF > "${base}.c" > #include <omp.h> > int main() { >@@ -209,7 +210,27 @@ > return ret; > } > EOF >- $(tc-getCC "$@") -fopenmp "${base}.c" -o "${base}" >&/dev/null >+ $($(tc-getCC) "$@") -fopenmp "${base}.c" -o "${base}" >&/dev/null >+ local ret=$? >+ rm -f "${base}"* >+ return ${ret} >+} >+ >+# for compatibility >+tc-has-openmp() { return gcc-has-openmp } >+ >+# @FUNCTION: gfortran-has-openmp >+# @USAGE: [toolchain prefix] >+# @DESCRIPTION: >+# See if the toolchain gfortran only supports OpenMP. >+gfortran-has-openmp() { >+ [[ $(tc-getFC) != *gfortran* ]] && return 0 >+ local base="${T}/test-fc-openmp" >+ cat <<-EOF > "${base}.f" >+ call omp_get_num_threads >+ end >+ EOF >+ $($(tc-getFC) "$@") -fopenmp "${base}.f" -o "${base}" >&/dev/null > local ret=$? > rm -f "${base}"* > return ${ret}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 348964
:
257435
|
257441
|
257649