Permalink
Browse files

Remove scratch folders.

  • Loading branch information...
1 parent 9e4dd30 commit f30a3ba7ffd11b71f3d5310d8c7c5e0ade8d6fd7 @akusok committed Jan 21, 2016
Showing with 5 additions and 63,561 deletions.
  1. +5 −0 .gitignore
  2. +0 −8 acc/__init__.py
  3. BIN acc/build/temp.linux-x86_64-2.7/cuda_code.o
  4. BIN acc/build/temp.linux-x86_64-2.7/cuda_solver.o
  5. BIN acc/build/temp.linux-x86_64-2.7/gpu_code.o
  6. BIN acc/build/temp.linux-x86_64-2.7/gpu_solver.o
  7. BIN acc/cuda_code
  8. +0 −152 acc/cuda_code (copy).cpp
  9. +0 −138 acc/cuda_code.cpp
  10. +0 −12 acc/cuda_code.h
  11. +0 −1 acc/cuda_solver.c
  12. +0 −6,983 acc/cuda_solver.cpp
  13. +0 −62 acc/cuda_solver.pyx
  14. BIN acc/cuda_solver.so
  15. +0 −256 acc/gpu_code.cpp
  16. +0 −12 acc/gpu_code.h
  17. +0 −7,680 acc/gpu_solver.cpp
  18. +0 −83 acc/gpu_solver.pyx
  19. +0 −237 acc/mic_code.cpp
  20. +0 −12 acc/mic_code.h
  21. +0 −83 acc/mic_solver.pyx
  22. +0 −7 acc/script.sh
  23. +0 −136 acc/setup_cuda.py
  24. +0 −51 acc/setup_gpu.py
  25. +0 −96 acc/try_cuda.py
  26. +0 −120 acc/try_gpu.py
  27. BIN develop/Elm october.pdf
  28. +0 −127 develop/XXXXelm_big.py
  29. +0 −310 develop/XXXXhpelm.py
  30. BIN develop/_Accelerators/CrayWorkshop/A.bin
  31. +0 −1 develop/_Accelerators/CrayWorkshop/C.bin
  32. BIN develop/_Accelerators/CrayWorkshop/H.bin
  33. +0 −1 develop/_Accelerators/CrayWorkshop/INSTALL
  34. BIN develop/_Accelerators/CrayWorkshop/Math Forum Discussions - AT_X_A.pdf
  35. BIN develop/_Accelerators/CrayWorkshop/SC13-MAGMA.pdf
  36. +0 −1 develop/_Accelerators/CrayWorkshop/U.bin
  37. BIN develop/_Accelerators/CrayWorkshop/VT.bin
  38. BIN develop/_Accelerators/CrayWorkshop/W.bin
  39. BIN develop/_Accelerators/CrayWorkshop/Y.bin
  40. BIN develop/_Accelerators/CrayWorkshop/build/temp.linux-x86_64-2.7/f_apply.o
  41. BIN develop/_Accelerators/CrayWorkshop/build/temp.linux-x86_64-2.7/mp_func.o
  42. BIN develop/_Accelerators/CrayWorkshop/build/temp.linux-x86_64-2.7/nl_func.o
  43. +0 −6,077 develop/_Accelerators/CrayWorkshop/clapack.h
  44. +0 −5,813 develop/_Accelerators/CrayWorkshop/f_apply.c
  45. BIN develop/_Accelerators/CrayWorkshop/f_apply.so
  46. +0 −15 develop/_Accelerators/CrayWorkshop/mp_func.c
  47. +0 −3 develop/_Accelerators/CrayWorkshop/mp_func.h
  48. +0 −137 develop/_Accelerators/CrayWorkshop/my_svd.c
  49. BIN develop/_Accelerators/CrayWorkshop/mysvd
  50. +0 −21 develop/_Accelerators/CrayWorkshop/setup.py
  51. +0 −24 develop/_Accelerators/CrayWorkshop/test.py
  52. +0 −106 develop/_Accelerators/CrayWorkshop/test_copy.py
  53. +0 −62 develop/_Accelerators/CrayWorkshop/test_small_nn.py
  54. BIN develop/_Accelerators/magma_ssyrk.png
  55. +0 −1 develop/_Cython_func/INSTALL.TXT
  56. BIN develop/_Cython_func/build/temp.macosx-10.5-x86_64-2.7/f_apply.o
  57. BIN develop/_Cython_func/build/temp.macosx-10.5-x86_64-2.7/mp_func.o
  58. +0 −5,799 develop/_Cython_func/f_apply.c
  59. BIN develop/_Cython_func/f_apply.so
  60. +0 −15 develop/_Cython_func/mp_func.c
  61. +0 −3 develop/_Cython_func/mp_func.h
  62. +0 −21 develop/_Cython_func/setup.py
  63. +0 −21 develop/_Cython_func/test.py
  64. +0 −107 develop/_Distributed_HH/test_mpi_HH.py
  65. BIN develop/_ELM_JMA/elm-jma.pdf
  66. BIN develop/_ELM_JMA/elm-jma.zip
  67. +0 −97 develop/_ELM_JMA/elm-jma/auxBuildKernelMatrix.m
  68. +0 −4 develop/_ELM_JMA/elm-jma/auxGaussianFcn.m
  69. +0 −57 develop/_ELM_JMA/elm-jma/combineJackknife.m
  70. +0 −44 develop/_ELM_JMA/elm-jma/elmSimulate_loo.m
  71. +0 −88 develop/_ELM_JMA/elm-jma/elmTrain_loo.m
  72. BIN develop/_Feature_selection/IJUFKS-D-14-00134.pdf
  73. BIN develop/_Feature_selection/NEW-OP-ELM.pdf
  74. BIN develop/_HannanQuinn/Akaike and BIC.pdf
  75. +0 −1 develop/_Imbalance_learning/Weighted ELM.txt
  76. +0 −99 develop/_Incremental_Timeseries/MG_opium.py
  77. +0 −29 develop/_Incremental_Timeseries/OPIUM.py
  78. BIN develop/_Incremental_Timeseries/opium.pdf
  79. BIN develop/_ML-ELM_Multilayer/extreme-learning-machines.pdf
  80. +0 −31 develop/_Math_solution/ldlmnls_Emil_solution.m
  81. BIN develop/_Math_solution/normal equations 1.png
  82. BIN develop/_Math_solution/normal equations 2.png
  83. BIN develop/_Math_solution/stable_Cholesky.pdf
  84. BIN develop/_Reproducible_research/Reproducible Research | University of Western Sydney (UWS).webarchive
  85. +0 −177 develop/_Sphinx/doc/Makefile
  86. +0 −336 develop/_Sphinx/doc/conf.py
  87. +0 −27 develop/_Sphinx/doc/index.rst
  88. +0 −242 develop/_Sphinx/doc/make.bat
  89. +0 −291 develop/compare_optimization_functions.py
  90. +0 −269 develop/elm_small.py
  91. +0 −68 develop/generator_what_gets_executed.py
  92. +0 −43 develop/gpu/compile
  93. +0 −182 develop/gpu/example.c
  94. +0 −3 develop/gpu/example.h
  95. +0 −226 develop/gpu/gpu_solver.cpp
  96. +0 −9 develop/gpu/gpu_solver.h
  97. +0 −6,447 develop/gpu/magma_solver.cpp
  98. +0 −82 develop/gpu/magma_solver.pyx
  99. +0 −76 develop/gpu/setup_gpu.py
  100. +0 −61 develop/gpu/test.py
  101. BIN develop/gpu/test.py.lprof
  102. +0 −20 develop/gpu/tryconfig.py
  103. +0 −38 develop/gpu_cpp/Rectangle.cpp
  104. +0 −13 develop/gpu_cpp/Rectangle.h
  105. BIN develop/gpu_cpp/build/temp.linux-x86_64-2.7/Rectangle.o
  106. BIN develop/gpu_cpp/build/temp.linux-x86_64-2.7/rect.o
  107. +0 −1,859 develop/gpu_cpp/rect.cpp
  108. +0 −19 develop/gpu_cpp/rect.pyx
  109. BIN develop/gpu_cpp/rect.so
  110. +0 −13 develop/gpu_cpp/setup.py
  111. +0 −604 develop/hp_elm_multiprocessing_async.py
  112. BIN develop/incr_std.py.lprof
  113. +0 −65 develop/incremental_variance_computation.py
  114. +0 −7 develop/modules/__init__
  115. +0 −317 develop/modules/data_loader.py
  116. +0 −47 develop/modules/h5tools.py
  117. BIN develop/one_neuron_at_a_time.py.lprof
  118. +0 −18 develop/overwrite_inherited.py
  119. +0 −65 develop/parallel_cdist.py
  120. BIN develop/parallel_cdist.py.lprof
  121. +0 −322 develop/parallel_cdist_projection.py
  122. +0 −29 develop/parallel_h5_write.py
  123. +0 −73 develop/parallel_mpi_iris.py
  124. +0 −143 develop/press_classification.py
  125. +0 −39 develop/reikna_test.py
  126. +0 −38 develop/replace_normalization.py
  127. +0 −40 develop/semi_Tikhonov_regularizations.py
  128. +0 −55 develop/setup_gpu.py
  129. +0 −76 develop/translate_dictionary.py
  130. +0 −77 develop_HtH/idea.txt
  131. +0 −247 develop_HtH/over_sampling.py
  132. +0 −283 develop_HtH/singlesample.py
  133. +0 −7 develop_os/OS-ELM/HardlimActFun.m
  134. +0 −205 develop_os/OS-ELM/OSELM.m
  135. +0 −206 develop_os/OS-ELM/OSELM_VARY.m
  136. +0 −12 develop_os/OS-ELM/RBFun.m
  137. +0 −7 develop_os/OS-ELM/SigActFun.m
  138. +0 −7 develop_os/OS-ELM/SinActFun.m
  139. +0 −55 develop_os/testMYELM.py
  140. +0 −58 develop_os/testOSELM.py
  141. +0 −1,643 ...lver/When to Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums.htm
  142. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/07991327102941AD9C26775F2917C54C.gif
  143. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/11B2B3C272C5480F8F739EF7B33C81C9.jpg
  144. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/1FBDE1D67CCE4065B93122208DC722CD.jpg
  145. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/239335867EEB4F5DB82A8D04839548C9.jpg
  146. BIN ... Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/3star.gif
  147. BIN ...Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/638326.png
  148. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/656C149DA46F4FF882ED56E767F0FED4.jpg
  149. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/74A7CD6B48A642BFBF81BD6AD7178FB2.jpg
  150. BIN ... Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/8star.gif
  151. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/A4FFFE3E75CC4C7B9AD0EE3A5FC6B7DD.jpg
  152. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/A6EC4944196040D4A71CFDB2BE61F468.jpg
  153. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/A7441CDCFA75433E82FE9352D6E554A3.jpg
  154. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/A79E37D55D1A485E96D67F78326097A9.jpg
  155. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/B84FF32121CD45128E7280F80314444C.jpg
  156. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/D2C158CCBA204C3688BBEE4EF465F732.jpg
  157. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/E4D6C3103D93422891793B3B028C59BB.jpg
  158. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/EB45543C92B446FC86FF65FCE51F0774.jpg
  159. BIN ...Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/EVGA_small.png
  160. BIN ... NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/F0A6B78C06F741BE964867289E968FB6.jpg
  161. +0 −1,832 ... Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/Javascript.js
  162. +0 −29 ...ble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/Javascript_002.js
  163. BIN ...recision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/MemHome_button_off.jpg
  164. BIN ...Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/Update.gif
  165. +0 −566 ...Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/WebResource.js
  166. +0 −2 ...Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/absolutebm.htm
  167. BIN ...e Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/arrowOne.png
  168. BIN ...le Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/arrowOne_black.png
  169. BIN ...Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/arrowThree.png
  170. BIN ... Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/arrowThree_black.png
  171. BIN ...e Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/arrowTwo.png
  172. BIN ...le Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/arrowTwo_black.png
  173. BIN ... Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/blank.gif
  174. BIN ... Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/close_off.png
  175. +0 −16 ...ouble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/combinedCss.css
  176. +0 −1,464 ...e Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/combinedCss_002.css
  177. +0 −3,893 ... Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/combinedJs.js
  178. +0 −1,911 ...ble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/combinedJs_002.js
  179. BIN ...cision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/community_button_off.jpg
  180. BIN ...e Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download.jpg
  181. BIN ...uble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download_002.jpg
  182. BIN ...uble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download_003.jpg
  183. BIN ...uble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download_004.jpg
  184. BIN ...uble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download_005.jpg
  185. BIN ...uble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download_006.jpg
  186. BIN ...uble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download_007.jpg
  187. BIN ...uble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download_008.jpg
  188. BIN ...uble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download_009.jpg
  189. BIN ...uble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download_010.jpg
  190. BIN ...uble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download_011.jpg
  191. BIN ...uble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/download_012.jpg
  192. BIN ...to Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/egc.jpg
  193. BIN ...o Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/feed.png
  194. +0 −251 ...e Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/forumMenu.js
  195. +0 −2 ... Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/jquery.js
  196. +0 −127 ... Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/jquery_002.js
  197. +0 −1,398 ...n to Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/ln.js
  198. BIN ... Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/login.gif
  199. BIN ... to Use Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/m1.gif
  200. +0 −4 ...e Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/modernizr.js
  201. +0 −56 ...e Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/prettify.css
  202. BIN ...ecision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/products_button_off.jpg
  203. BIN ...se Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/sig-392.png
  204. BIN ...se Double Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/sig-767.png
  205. BIN ...ouble Precision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/sm_mods_off.gif
  206. BIN ...recision under NVIDIA Control Panel Manage 3D Settings - EVGA Forums_files/support_button_off.jpg
  207. +0 −200 develop_solver/datas_43.txt
  208. BIN develop_solver/plot_1000.pdf
  209. BIN develop_solver/plot_3000.pdf
  210. BIN develop_solver/plot_big.pdf
  211. BIN develop_solver/plot_largeN.pdf
  212. BIN develop_solver/plot_small.pdf
  213. BIN develop_solver/plot_tiny.pdf
  214. +0 −83 develop_solver/profiling_speen_vs_N.txt
  215. +0 −268 develop_solver/solver.py
  216. BIN develop_solver/solver.py.lprof
  217. +0 −100 develop_solver/solver_numbapro.py
  218. +0 −134 develop_solver/solver_python.py
  219. +0 −5 develop_solver/solver_python.py.lprof
  220. +0 −233 develop_solver/solver_skcuda.py
  221. +0 −3 develop_solver/solver_skcuda.py.lprof
  222. BIN develop_solver/test.py.lprof
  223. +0 −144 develop_solver/test_gpu_project.py
  224. BIN develop_solver/test_gpu_project.py.lprof
  225. +0 −201 develop_solver/test_numbapro.py
  226. +0 −149 develop_solver/test_skcuda.py
  227. BIN develop_solver/test_skcuda.py.lprof
View
@@ -2,10 +2,15 @@
*.pyc
# Setuptools distribution folder
+/acc/
/dist/
/datasets_big/
/benchmark/
/try/
+/develop/
+/develop_HtH/
+/develop_os/
+/develop_solver/
# HTML documentation
_build/
View
@@ -1,8 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-Created on Sat Feb 21 20:46:31 2015
-
-@author: akusok
-"""
-
-#from gpu_solver import GPUSolver, gpu_solve
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
@@ -1,152 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <cuda_runtime.h>
-#include "cublas_v2.h"
-
-// H_(N,L), T_(N,C), HH(L,L), HT(L,C)
-
-class CudaSolver {
- int L, C;
- double* devHH;
- double* devHT;
- double* one;
- cublasHandle_t handle;
- public:
- CudaSolver( int, int, double*, double* );
- void get_corr( double* HH, double* HT );
- void add_data( int N, double* H, double* T );
- void finalize();
-};
-
-
-// init a zero matrix on GPU to store X'*X, add normalization
-CudaSolver::CudaSolver ( int nL, int nC, double* HH, double* HT ) {
- cudaError_t cudaStat;
- cublasStatus_t stat;
- double* ones;
-
- L = nL;
- C = nC;
-
-
- cudaStat = cudaMalloc((void**)&devHH, L*L*sizeof(*HH));
- if (cudaStat != cudaSuccess) { printf ("devHH device memory allocation failed"); }
- fprintf(stdout, "Allocating devHH success\n");
-
- cudaStat = cudaMalloc((void**)&devHT, L*C*sizeof(*HT));
- if (cudaStat != cudaSuccess) { printf ("devHT device memory allocation failed"); }
- fprintf(stdout, "Allocating devHT success\n");
-
- stat = cublasCreate(&handle);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("CUBLAS initialization failed\n"); }
- fprintf(stdout, "CUBLAS initialization success\n");
-
- stat = cublasSetPointerMode(handle, CUBLAS_POINTER_MODE_DEVICE);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("Setting pointer mode failed"); }
- fprintf(stdout, "Setting pointer mode success\n");
-
- stat = cublasSetMatrix (L, L, sizeof(*HH), HH, L, devHH, L);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devHH upload failed"); }
- fprintf(stdout, "devHH upload success\n");
-
- stat = cublasSetMatrix (C, L, sizeof(*HT), HT, C, devHT, C);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devHT upload failed"); }
- fprintf(stdout, "devHT upload success\n");
-
-
- ones = (double*) malloc (1*sizeof(double));
- ones[0] = 1.0;
- cudaMalloc((void**)&one, 1*sizeof(double));
- cublasSetVector(1, sizeof(*ones), ones, 1, one, 1);
- fprintf(stdout, "here\n");
-
-};
-
-
-// update covariance matrices with new data
-void CudaSolver::add_data ( int N, double* H, double* T ) {
- cudaError_t cudaStat;
- cublasStatus_t stat;
- double* devH;
- double* devT;
-
- cudaStat = cudaMalloc((void**)&devH, N*L*sizeof(*H));
- if (cudaStat != cudaSuccess) { printf ("devH device memory allocation failed"); goto cleanup; }
- fprintf(stdout, "Allocating devH success\n");
-
- cudaStat = cudaMalloc((void**)&devT, N*C*sizeof(*T));
- if (cudaStat != cudaSuccess) { printf ("devT device memory allocation failed"); goto cleanup; }
- fprintf(stdout, "Allocating devT success\n");
-
- stat = cublasSetMatrix (N, L, sizeof(*H), H, N, devH, N);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devH upload failed"); }
- fprintf(stdout, "devH upload success\n");
-
- stat = cublasSetMatrix (N, C, sizeof(*T), T, N, devT, N);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devT upload failed"); }
- fprintf(stdout, "devT upload success\n");
-
-
- stat = cublasDsyrk(handle, CUBLAS_FILL_MODE_UPPER, CUBLAS_OP_N,
- L, N, one, devH, L, one, devHH, L);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("H'H update failed"); }
- fprintf(stdout, "H'H update success\n");
-
-//
-// stat = cublasDgemm(handle, CUBLAS_OP_N, CUBLAS_OP_T,
-// L, C, N,
-// one, devH, L,//L
-// devT, C,//C
-// one, devHT, L);
-
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("H'T update failed\n"); }
- fprintf(stdout, "H'T update success\n");
-
-
- cleanup:
- cudaFree (devH);
- fprintf(stdout, "devH freed success\n");
- cudaFree (devT);
- fprintf(stdout, "devT freed success\n");
-
-
-};
-
-
-// return current covariance matrices
-void CudaSolver::get_corr ( double* HH, double* HT ) {
- cublasStatus_t stat;
-
- stat = cublasGetMatrix (L, L, sizeof(*HH), devHH, L, HH, L);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devHH download failed"); }
-
- stat = cublasGetMatrix (L, C, sizeof(*HT), devHT, L, HT, L);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devHT download failed"); }
-};
-
-
-// free memory
-void CudaSolver::finalize( ) {
- fprintf(stdout, "Solver finalized\n");
- cudaFree (devHH);
- cudaFree (devHT);
- cudaFree (one);
- cublasDestroy(handle);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
View
@@ -1,138 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <cuda_runtime.h>
-#include "cublas_v2.h"
-
-// H_(N,L), T_(N,C), HH(L,L), HT(L,C)
-
-class CudaSolver {
- int L, C;
- double* devHH;
- double* devHT;
- double* one;
- double* ones;
- cublasHandle_t handle;
- public:
- CudaSolver( int, int, double*, double* );
- void get_corr( double* HH, double* HT );
- void add_data( int N, double* H, double* T );
- void finalize();
-};
-
-
-// init a zero matrix on GPU to store X'*X, add normalization
-CudaSolver::CudaSolver ( int nL, int nC, double* HH, double* HT ) {
- cudaError_t cudaStat;
- cublasStatus_t stat;
-
- L = nL;
- C = nC;
-
-
- cudaStat = cudaMalloc((void**)&devHH, L*L*sizeof(*HH));
- if (cudaStat != cudaSuccess) { printf ("devHH device memory allocation failed"); }
- fprintf(stdout, "Allocating devHH success\n");
-
- cudaStat = cudaMalloc((void**)&devHT, L*C*sizeof(*HT));
- if (cudaStat != cudaSuccess) { printf ("devHT device memory allocation failed"); }
- fprintf(stdout, "Allocating devHT success\n");
-
- stat = cublasCreate(&handle);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("CUBLAS initialization failed\n"); }
- fprintf(stdout, "CUBLAS initialization success\n");
-
- stat = cublasSetMatrix (L, L, sizeof(*HH), HH, L, devHH, L);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devHH upload failed"); }
- fprintf(stdout, "devHH upload success\n");
-
- stat = cublasSetMatrix (C, L, sizeof(*HT), HT, C, devHT, C);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devHT upload failed"); }
- fprintf(stdout, "devHT upload success\n");
-};
-
-
-// update covariance matrices with new data
-void CudaSolver::add_data ( int N, double* H, double* T ) {
- cudaError_t cudaStat;
- cublasStatus_t stat;
- double* devH;
- double* devT;
- double one = 1.0;
-
- cudaStat = cudaMalloc((void**)&devH, N*L*sizeof(*H));
- if (cudaStat != cudaSuccess) { printf ("devH device memory allocation failed"); goto cleanup1; }
-// fprintf(stdout, "Allocating devH success\n");
-
- cudaStat = cudaMalloc((void**)&devT, N*C*sizeof(*T));
- if (cudaStat != cudaSuccess) { printf ("devT device memory allocation failed"); goto cleanup2; }
-// fprintf(stdout, "Allocating devT success\n");
-
- stat = cublasSetMatrix (N, L, sizeof(*H), H, N, devH, N);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devH upload failed"); }
-// fprintf(stdout, "devH upload success\n");
-
- stat = cublasSetMatrix (N, C, sizeof(*T), T, N, devT, N);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devT upload failed"); }
-// fprintf(stdout, "devT upload success\n");
-
-
- stat = cublasDsyrk(handle, CUBLAS_FILL_MODE_UPPER, CUBLAS_OP_T,
- L, N, &one, devH, N, &one, devHH, L);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("H'H update failed\n"); }
-// fprintf(stdout, "H'H update success\n");
-
- stat = cublasDgemm(handle, CUBLAS_OP_T, CUBLAS_OP_N,
- L, C, N,
- &one, devH, N,
- devT, N,
- &one, devHT, L);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("H'T update failed\n"); }
-// fprintf(stdout, "H'T update success\n");
-
-
- cleanup2:
- cudaFree (devT);
-// fprintf(stdout, "devT freed success\n");
- cleanup1:
- cudaFree (devH);
-// fprintf(stdout, "devH freed success\n");
-
-};
-
-
-// return current covariance matrices
-void CudaSolver::get_corr ( double* HH, double* HT ) {
- cublasStatus_t stat;
-
- stat = cublasGetMatrix (L, L, sizeof(*HH), devHH, L, HH, L);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devHH download failed"); }
-
- stat = cublasGetMatrix (L, C, sizeof(*HT), devHT, L, HT, L);
- if (stat != CUBLAS_STATUS_SUCCESS) { printf ("devHT download failed"); }
-};
-
-
-// free memory
-void CudaSolver::finalize( ) {
- fprintf(stdout, "Solver finalized\n");
- cudaFree (devHH);
- cudaFree (devHT);
- cublasDestroy(handle);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
View
@@ -1,12 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <cuda_runtime.h>
-#include "cublas_v2.h"
-
-class CudaSolver {
- public:
- CudaSolver( int, int, double* HH, double* HT );
- void get_corr( double* HH, double* HT );
- void add_data( int N, double* H, double* T );
- void finalize();
-};
View
@@ -1 +0,0 @@
-#error Do not use this file, it is the result of a failed Cython compilation.
Oops, something went wrong.

0 comments on commit f30a3ba

Please sign in to comment.