Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added Windows-specific build configuration #3

Merged
merged 1 commit into from

2 participants

@ghost

Requires CUDA_PATH environment variable to be set, which is typically set by the CUDA Toolkit installer.

@ajoslyn ajoslyn Added Windows-specific build configuration
Requires CUDA_PATH environment variable to be set.
20d6567
@kashif kashif merged commit 071a432 into from
@kashif
Owner

Great! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 9, 2013
  1. @ajoslyn

    Added Windows-specific build configuration

    ajoslyn authored
    Requires CUDA_PATH environment variable to be set.
This page is out of date. Refresh to see the latest.
Showing with 26 additions and 5 deletions.
  1. +26 −5 binding.gyp
View
31 binding.gyp
@@ -24,12 +24,33 @@
'-lcuda',
]
}
+ }],
+ [ 'OS=="win"', {
+ 'conditions': [
+ ['target_arch=="x64"',
+ {
+ 'variables': { 'arch': 'x64' }
+ }, {
+ 'variables': { 'arch': 'Win32' }
+ }
+ ],
+ ],
+ 'variables': {
+ 'cuda_root%': '$(CUDA_PATH)'
+ },
+ 'libraries': [
+ '-l<(cuda_root)/lib/<(arch)/cuda.lib',
+ ],
+ "include_dirs": [
+ "<(cuda_root)/include",
+ ],
+ }, {
+ "include_dirs": [
+ "/usr/local/cuda-5.0/include",
+ "/usr/local/cuda/include"
+ ],
}]
- ],
- "include_dirs": [
- "/usr/local/cuda-5.0/include",
- "/usr/local/cuda/include"
- ],
+ ]
}
]
}
Something went wrong with that request. Please try again.