Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
a924f45c
"platforms/cpu/vscode:/vscode.git/clone" did not exist on "8a9a50261f23dbf7538b4d00217f1846b40e11ed"
Commit
a924f45c
authored
Aug 06, 2010
by
Peter Eastman
Browse files
Allow building 64 bit binaries on OS X
parent
1f878f82
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
CMakeLists.txt
CMakeLists.txt
+6
-4
platforms/opencl/CMakeLists.txt
platforms/opencl/CMakeLists.txt
+2
-2
No files found.
CMakeLists.txt
View file @
a924f45c
...
@@ -94,10 +94,11 @@ ELSE( CMAKE_SIZEOF_VOID_P EQUAL 8 )
...
@@ -94,10 +94,11 @@ ELSE( CMAKE_SIZEOF_VOID_P EQUAL 8 )
ENDIF
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
ENDIF
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
# Build 32 bit binaries, since CUDA doesn't currently work with 64 bit
# Build 32 bit binaries, since CUDA doesn't currently work with 64 bit
IF
(
APPLE
)
IF
(
APPLE AND NOT CMAKE_OSX_ARCHITECTURES
)
SET
(
CMAKE_CXX_FLAGS
"-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5"
)
SET
(
CMAKE_OSX_ARCHITECTURES
"i386"
CACHE STRING
"The processor architectures to build for"
FORCE
)
SET
(
CMAKE_C_FLAGS
"-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5"
)
SET
(
CMAKE_OSX_DEPLOYMENT_TARGET
"10.5"
CACHE STRING
"The minimum version of OS X to support"
FORCE
)
ENDIF
(
APPLE
)
SET
(
CMAKE_OSX_SYSROOT
"/Developer/SDKs/MacOSX10.5.sdk"
CACHE STRING
"The SDK to build against"
FORCE
)
ENDIF
(
APPLE AND NOT CMAKE_OSX_ARCHITECTURES
)
IF
(
UNIX AND NOT CMAKE_BUILD_TYPE
)
IF
(
UNIX AND NOT CMAKE_BUILD_TYPE
)
SET
(
CMAKE_BUILD_TYPE Release CACHE STRING
"Debug or Release build"
FORCE
)
SET
(
CMAKE_BUILD_TYPE Release CACHE STRING
"Debug or Release build"
FORCE
)
...
@@ -331,6 +332,7 @@ IF(CUDA_FOUND)
...
@@ -331,6 +332,7 @@ IF(CUDA_FOUND)
SET
(
FLAGS
${
FLAGS
}
-gencode arch=compute_13,code=sm_13
)
SET
(
FLAGS
${
FLAGS
}
-gencode arch=compute_13,code=sm_13
)
SET
(
FLAGS
${
FLAGS
}
-gencode arch=compute_20,code=sm_20
)
SET
(
FLAGS
${
FLAGS
}
-gencode arch=compute_20,code=sm_20
)
SET
(
FLAGS
${
FLAGS
}
-use_fast_math
)
SET
(
FLAGS
${
FLAGS
}
-use_fast_math
)
SET
(
FLAGS
${
FLAGS
}
-m32
)
IF
(
MSVC
)
IF
(
MSVC
)
# Unfortunately the variables CUDA_NVCC_FLAGS_RELEASE and CUDA_NVCC_FLAGS_DEBUG
# Unfortunately the variables CUDA_NVCC_FLAGS_RELEASE and CUDA_NVCC_FLAGS_DEBUG
# appear to be unused, at least in CMake 2.6
# appear to be unused, at least in CMake 2.6
...
...
platforms/opencl/CMakeLists.txt
View file @
a924f45c
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
#----------------------------------------------------
#----------------------------------------------------
IF
(
APPLE
)
IF
(
APPLE
)
SET
(
CMAKE_
CXX_FLAGS
"-arch i38
6"
)
SET
(
CMAKE_
OSX_DEPLOYMENT_TARGET
"10.
6"
)
SET
(
CMAKE_
C_FLAGS
"-arch i386
"
)
SET
(
CMAKE_
OSX_SYSROOT
"/Developer/SDKs/MacOSX10.6.sdk
"
)
ENDIF
(
APPLE
)
ENDIF
(
APPLE
)
# Only run tests if this machine has a OpenCL-capable GPU
# Only run tests if this machine has a OpenCL-capable GPU
...
...
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