diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-09-16 20:05:32 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-09-16 20:05:32 -0400 |
commit | 2d1fe1a20a9f2784ec4172429f31c228274ed8ac (patch) | |
tree | cebf2d997d0bd216830e7d4a9d03bb05335c0b80 | |
parent | 6b3b85da89aee11ed47369833470b9282dd5994f (diff) |
Add support for CUDA 5.0 (release candidate)
-rw-r--r-- | litmus/Kconfig | 10 | ||||
-rw-r--r-- | litmus/nvidia_info.c | 7 |
2 files changed, 14 insertions, 3 deletions
diff --git a/litmus/Kconfig b/litmus/Kconfig index c5dbc4a176ae..b28fe2c09acd 100644 --- a/litmus/Kconfig +++ b/litmus/Kconfig | |||
@@ -435,11 +435,17 @@ config NV_MAX_SIMULT_USERS | |||
435 | 435 | ||
436 | choice | 436 | choice |
437 | prompt "CUDA/Driver Version Support" | 437 | prompt "CUDA/Driver Version Support" |
438 | default CUDA_4_0 | 438 | default CUDA_5_0 |
439 | depends on LITMUS_NVIDIA | 439 | depends on LITMUS_NVIDIA |
440 | help | 440 | help |
441 | Select the version of CUDA/driver to support. | 441 | Select the version of CUDA/driver to support. |
442 | 442 | ||
443 | config CUDA_5_0 | ||
444 | bool "CUDA 5.0" | ||
445 | depends on LITMUS_NVIDIA && REALTIME_AUX_TASKS | ||
446 | help | ||
447 | Support CUDA 5.0 RCx (dev. driver version: x86_64-304.33) | ||
448 | |||
443 | config CUDA_4_0 | 449 | config CUDA_4_0 |
444 | bool "CUDA 4.0" | 450 | bool "CUDA 4.0" |
445 | depends on LITMUS_NVIDIA | 451 | depends on LITMUS_NVIDIA |
diff --git a/litmus/nvidia_info.c b/litmus/nvidia_info.c index b6ead58802f6..d04c6efa5f05 100644 --- a/litmus/nvidia_info.c +++ b/litmus/nvidia_info.c | |||
@@ -31,6 +31,9 @@ typedef union | |||
31 | typedef struct | 31 | typedef struct |
32 | { | 32 | { |
33 | NvU64 address; | 33 | NvU64 address; |
34 | #ifdef CONFIG_CUDA_5_0 | ||
35 | NvU64 strapped_size; | ||
36 | #endif | ||
34 | NvU64 size; | 37 | NvU64 size; |
35 | NvU32 offset; | 38 | NvU32 offset; |
36 | NvU32 *map; | 39 | NvU32 *map; |
@@ -42,7 +45,9 @@ typedef struct | |||
42 | void *priv; /* private data */ | 45 | void *priv; /* private data */ |
43 | void *os_state; /* os-specific device state */ | 46 | void *os_state; /* os-specific device state */ |
44 | 47 | ||
48 | #ifndef CONFIG_CUDA_5_0 | ||
45 | int rmInitialized; | 49 | int rmInitialized; |
50 | #endif | ||
46 | int flags; | 51 | int flags; |
47 | 52 | ||
48 | /* PCI config info */ | 53 | /* PCI config info */ |
@@ -101,7 +106,7 @@ typedef struct litmus_nv_linux_state_s { | |||
101 | void *pci_cfgchk_sp; | 106 | void *pci_cfgchk_sp; |
102 | void *isr_bh_sp; | 107 | void *isr_bh_sp; |
103 | 108 | ||
104 | #ifdef CONFIG_CUDA_4_0 | 109 | #if defined(CONFIG_CUDA_4_0) || defined(CONFIG_CUDA_5_0) |
105 | char registry_keys[512]; | 110 | char registry_keys[512]; |
106 | #endif | 111 | #endif |
107 | 112 | ||