Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
SWE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
SWE
Commits
92914bca
Commit
92914bca
authored
Jul 31, 2012
by
Alexander Breuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Mac OS X specific issues (CUDA) in the build script.
parent
fbf9fdf1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
CudaTool.py
CudaTool.py
+2
-1
SConstruct
SConstruct
+4
-0
No files found.
CudaTool.py
View file @
92914bca
...
...
@@ -33,6 +33,7 @@ CUDA Tool for SCons
breuera - changes (see original: http://www.scons.org/wiki/CudaTool)
* commented out *.linkinfo
* lib64 instead of lib
* removed unnecessary SDK, "cudaSDKPath + '/lib64', cudaSDKPath + '/common/lib64' + cudaSDKSubLibDir, ", from LIBSPATH
***
"""
...
...
@@ -172,7 +173,7 @@ def generate(env):
# add required libraries
env
.
Append
(
CPPPATH
=
[
cudaSDKPath
+
'/common/inc'
,
cudaToolkitPath
+
'/include'
])
env
.
Append
(
LIBPATH
=
[
cuda
SDKPath
+
'/lib64'
,
cudaSDKPath
+
'/common/lib64'
+
cudaSDKSubLibDir
,
cuda
ToolkitPath
+
'/lib64'
])
env
.
Append
(
LIBPATH
=
[
cudaToolkitPath
+
'/lib64'
])
env
.
Append
(
LIBS
=
[
'cudart'
])
def
exists
(
env
):
...
...
SConstruct
View file @
92914bca
...
...
@@ -190,6 +190,10 @@ if env['parallelization'] in ['cuda', 'mpi_with_cuda']:
env
.
Append
(
NVCCFLAGS
=
' --gpu-architecture='
)
env
.
Append
(
NVCCFLAGS
=
env
[
'computeCapability'
])
# compile explicitly with 64-bit on Mac OS X
if
env
[
'PLATFORM'
]
==
'darwin'
:
env
.
Append
(
NVCCFLAGS
=
' -m64'
)
# set the precompiler flags for MPI (CUDA)
if
env
[
'parallelization'
]
in
[
'mpi_with_cuda'
]:
env
.
Append
(
NVCCFLAGS
=
' -DUSEMPI'
)
...
...
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