Skip to content

Instantly share code, notes, and snippets.

Created July 26, 2013 10:58
Show Gist options
  • Save anonymous/6088031 to your computer and use it in GitHub Desktop.
Save anonymous/6088031 to your computer and use it in GitHub Desktop.
add_library(scsl eigensolvers.c)
set_target_properties (scsl PROPERTIES COMPILE_DEFINITIONS SCSL)
target_link_libraries(scsl multithreading ${LAPACK_LIBS})
add_library(pcsl eigensolvers.c)
set_target_properties (scsl PROPERTIES COMPILE_DEFINITIONS "PCSL=1")
target_link_libraries(pcsl multithreading ${LAPACK_LIBS})
add_library(scpl eigensolvers.c)
set_target_properties (scsl PROPERTIES COMPILE_DEFINITIONS SCPL=1)
target_link_libraries(scpl multithreading ${LAPACK_LIBS})
#ifdef SCSL
void scsl_bxinv(FileRepresenation* input, FileRepresentation* result)
#elifdef SCPL
void scpl_bxinv(FileRepresenation* input, FileRepresentation* result)
#elifdef PCSL
void pcsl_bxinv(FileRepresenation* input, FileRepresentation* result)
#endif
{
//do stuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment