Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BlenderPhi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
raas
BlenderPhi
Commits
8fee9836
Commit
8fee9836
authored
Nov 15, 2010
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
patch from Dan Eicher to support intel C++ compiler for CMake on *nix.
parent
1a12d6d1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+40
-6
40 additions, 6 deletions
CMakeLists.txt
source/blender/nodes/intern/CMP_nodes/CMP_defocus.c
+4
-0
4 additions, 0 deletions
source/blender/nodes/intern/CMP_nodes/CMP_defocus.c
with
44 additions
and
6 deletions
CMakeLists.txt
+
40
−
6
View file @
8fee9836
...
...
@@ -311,24 +311,58 @@ IF(UNIX AND NOT APPLE)
SET
(
BINRELOC_INC
${
BINRELOC
}
/include
)
ENDIF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
IF
(
WITH_OPENMP
)
LIST
(
APPEND LLIBS -lgomp
)
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fopenmp"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fopenmp"
)
ENDIF
(
WITH_OPENMP
)
SET
(
PLATFORM_LINKFLAGS
"-pthread"
)
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"
)
# GNU Compiler
IF
(
CMAKE_COMPILER_IS_GNUCC
)
IF
(
WITH_OPENMP
)
LIST
(
APPEND LLIBS -lgomp
)
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fopenmp"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fopenmp"
)
ENDIF
(
WITH_OPENMP
)
SET
(
PLATFORM_CFLAGS
"-pipe -fPIC -funsigned-char -fno-strict-aliasing"
)
# Better warnings
# note: -Wunused-parameter is added below for all GCC compilers
SET
(
C_WARNINGS
"-Wall -Wno-char-subscripts -Wpointer-arith -Wcast-align -Wdeclaration-after-statement -Wno-unknown-pragmas"
)
SET
(
CXX_WARNINGS
"-Wall -Wno-invalid-offsetof -Wno-sign-compare"
)
# Intel C++ Compiler
ELSEIF
(
CMAKE_C_COMPILER_ID MATCHES
"Intel"
)
IF
(
WITH_OPENMP
)
LIST
(
APPEND LLIBS -lgomp
)
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-openmp"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-openmp"
)
ENDIF
(
WITH_OPENMP
)
# think these next two are broken
FIND_PROGRAM
(
XIAR xiar
)
IF
(
XIAR
)
SET
(
CMAKE_AR
"
${
XIAR
}
"
)
ENDIF
(
XIAR
)
MARK_AS_ADVANCED
(
XIAR
)
FIND_PROGRAM
(
XILD xild
)
IF
(
XILD
)
SET
(
CMAKE_LINKER
"
${
XILD
}
"
)
ENDIF
(
XILD
)
MARK_AS_ADVANCED
(
XILD
)
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-fp-model precise -prec_div -parallel"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fp-model precise -prec_div -parallel"
)
SET
(
PLATFORM_CFLAGS
"-pipe -fPIC -funsigned-char -fno-strict-aliasing"
)
# SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -diag-enable sc3")
SET
(
C_WARNINGS
"-Wall -Wpointer-arith -Wno-unknown-pragmas"
)
SET
(
CXX_WARNINGS
"-Wall -Wno-invalid-offsetof -Wno-sign-compare"
)
SET
(
PLATFORM_LINKFLAGS
"
${
PLATFORM_LINKFLAGS
}
-static-intel"
)
ENDIF
(
CMAKE_COMPILER_IS_GNUCC
)
ENDIF
(
UNIX AND NOT APPLE
)
...
...
This diff is collapsed.
Click to expand it.
source/blender/nodes/intern/CMP_nodes/CMP_defocus.c
+
4
−
0
View file @
8fee9836
...
...
@@ -378,7 +378,11 @@ static void defocus_blur(bNode *node, CompBuf *new, CompBuf *img, CompBuf *zbuf,
//------------------------------------------------------------------
// main loop
#ifdef __INTEL_COMPILER
/* icc doesn't like the compound statement -- internal error: 0_1506 */
#pragma omp parallel for private(y) if(!nqd->preview) schedule(guided)
#else
#pragma omp parallel for private(y) if(!nqd->preview && img->y*img->x > 16384) schedule(guided)
#endif
for
(
y
=
0
;
y
<
img
->
y
;
y
++
)
{
unsigned
int
p
,
p4
,
zp
,
cp
,
cp4
;
float
*
ctcol
,
u
,
v
,
ct_crad
,
cR2
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment