Le blog de Jean David TECHER, un Réunionnais à Saint-Priest/Lyon

Aller au contenu | Aller au menu | Aller à la recherche


< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 >

mardi 13 mars 2012

PostgreSQL.fr: Témoignage d'utilisation de PostgreSQL - le boncoin.fr

Je viens de lire ce témoignage de Christophe Legendre et c'est simplement bluffant, ce qu'ils - les gars du site - font de PostgreSQL sur le site leboncoin.fr.

Un seul mot à dire: RESPECT

A lire PostgreSQL.fr: Interview de Christophe Legendre (leboncoin.fr)

dimanche 11 mars 2012

Xen VGA Passthrough/VIDIA: Playing Rage on Ubuntu Lucid 10.04.4 64 bits with CUDA using Wine 1.4

Rage is known to be playable (perfectly ?) on Linux using Wine 1.3 and 1.4. Since I am keen on testing games on Linux using Xen VGA Passthroug, a couple weeks ago, I decided to begin my test using Crysis 2. This week-end, let's have a try for Rage. While I was doing a few search for playing Rage using Wine from http://appdb.winehq.org/objectManager.php?sClass=version&iId=24512, it was noticed that the game is playable using CUDA for accelerating textures.

As noticed in this previous link, all required informations could be found at http://forums.steampowered.com/forums/showthread.php?p=25773275


Transcoding option (CUDA/GPU) available from main Video settings.
AS MENTIONNED IN THE PREVIOUS LINK, DON'T FORGET TO SWITCH THIS OPTION TO OFF WHEN YOU STOP TO PLAY.

Here are my personal detailed informations for installation.

Install Cuda Toolkit 4.0.17 (32 Bits)

You need to use this specific CUDA version. Doesn't work for 4.1

Wine Cuda

  • Download the sources
    git clone https://github.com/lexa2/wine-cuda.git
    
  • Since I am using wine 1.4 compiled for 32 bits on Ubuntu 64 bits, I have to modify the Makefile
    1. cd wine-cuda/cudart/
    2. Edit the Makefile using vim and on line 31, add -m32. You should have
      29: cudart_dll_LDFLAGS    = -shared \
      30:                         $(cudart_dll_MODULE:%=%.spec) \
      31:                         -mno-cygwin -m32
      
    3. Compil
      CFLAGS="-I/usr/local/include/wine/" LDFLAGS="-L/usr/local/lib/wine/" make clean all
  • In your Rage installation directory, backup cudart32_40_17.dll
    cd /home/david/.wine/drive_c/Program\ Files/Bethesda\ Softworks/Rage/
    mv cudart32_40_17.dll cudart32_40_17.dll_orig
  • Copy cudart32_40_17.dll.so to the required directory on $WINEPREFIX/drive_c/window/system32 and create a symbolic link
    cd wine-cuda/cudart
    
    cp -vf cudart32_40_17.dll.so /home/david/.wine/drive_c/windows/system32/
    
    ln -s /home/david/.wine/drive_c/windows/system32/cudart32_40_17.dll.so /home/david/.wine/drive_c/windows/system32/cudart32_40_17.dll
    
On Video options, CUDA setting should be available (see image above).

samedi 10 mars 2012

Pour mémo

SELECT s1.nspname || '.' || t1.relname AS tablename,
a.attname,
s2.nspname || '.' || t2.relname AS sequencename
FROM pg_depend AS d
JOIN pg_class AS t1 ON t1.oid = d.refobjid
JOIN pg_class AS t2 ON t2.oid = d.objid
JOIN pg_namespace AS s1 ON s1.oid = t1.relnamespace
JOIN pg_namespace AS s2 ON s2.oid = t2.relnamespace
JOIN pg_attribute AS a ON a.attrelid = d.refobjid AND a.attnum = d.refobjsubid
WHERE t1.relkind = 'r'
AND t2.relkind = 'S';

jeudi 8 mars 2012

Wine 1.4 is out

Wine 1.4 is out. So I will be able to test it on Xen :).