6 #-----------------------------------------------
8 #-----------------------------------------------
23 #-----------------------------------------------
25 #-----------------------------------------------
27 source .
/workspace_classification.sh
29 #-----------------------------------------------
31 #-----------------------------------------------
36 if [ ${OS} == "Linux" ]
38 echo "[ERROR] : .sh : input missing : gcc or intellinux"
40 elif [ ${OS} == "Win" ]
42 echo "[ERROR] : .sh : input missing : visual or intelwin or mingw"
50 #-----------------------------------------------
52 #-----------------------------------------------
58 echo "--------------------------------------------------------------------------------------------------------"
59 echo "[Compiling Workspace]"
61 echo " Workspace = "${workspaceRoot}
62 echo " Compilateur = "${compilateur}
63 echo " State = Please wait ..."
66 echo "--------------------------------------------------------------------------------------------------------"
69 for cuda
in ${setCUDA}
75 echo "----------------------------------------------------------------------------------"
76 echo "[Compiling Cuda Project]"
78 echo "Project =" ${cuda}
79 echo "Workspace =" $(pwd)
80 echo "Compilateur = g++ && nvcc"
81 echo "----------------------------------------------------------------------------------"
84 if [ ${OS} == "Linux" ]
88 elif [ ${OS} == "Win" ]
90 cmd.exe
//c
${MAKE_CUDA_VISUAL} all
102 echo "----------------------------------------------------------------------------------"
103 echo "[Compiling CPP Project]"
105 echo "Project =" ${cpp}
106 echo "Workspace =" $(pwd)
107 echo "Compilateur = ${compilateur}"
108 echo "----------------------------------------------------------------------------------"
111 if [ ${OS} == "Linux" ]
114 if [ ${compilateur} == "gcc" ]
118 elif [ ${compilateur} == "intellinux" ]
120 ${MAKE_INTEL_LINUX} all
123 elif [ ${OS} == "Win" ]
126 if [ ${compilateur} == "visual" ]
128 cmd.exe
//c
${MAKE_VISUAL} all
130 elif [ ${compilateur} == "intelwin" ]
132 cmd.exe
//c
${MAKE_INTEL_WIN} all
134 elif [ ${compilateur} == "mingw" ]
136 cmd.exe
//c
${MAKE_MINGW} all
144 for intel
in ${setIntel}
150 echo "----------------------------------------------------------------------------------"
151 echo "[Compiling CPP-intel only Project]"
153 echo "Project =" ${cpp}
154 echo "Workspace =" $(pwd)
155 echo "Compilateur = icpp"
156 echo "----------------------------------------------------------------------------------"
159 if [ ${OS} == "Linux" ]
161 ${MAKE_INTEL_LINUX} all
163 elif [ ${OS} == "Win" ]
165 cmd.exe
//c
${MAKE_INTEL_WIN} all
175 echo "--------------------------------------------------------------------------------------------------------"
176 echo "[Compiling Workspace]"
178 echo " Workspace = "${workspaceRoot}
179 echo " State = Success!"
182 echo "--------------------------------------------------------------------------------------------------------"
188 #-----------------------------------------------
190 #-----------------------------------------------