-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
George Powley
committed
Apr 23, 2017
1 parent
dd638ad
commit 9d23edc
Showing
12 changed files
with
225 additions
and
52 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.intel.gkl.pairhmm; | ||
|
||
/** | ||
* Provides a native PairHMM implementation accelerated using Intel FPGAs | ||
*/ | ||
public final class IntelPairHmmFpga extends IntelPairHmm { | ||
private static final String NATIVE_LIBRARY_NAME = "gkl_pairhmm_fpga"; | ||
|
||
public IntelPairHmmFpga() { | ||
setNativeLibraryName(NATIVE_LIBRARY_NAME); | ||
useFpga = true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,37 @@ | ||
#--------------------------------------------------------------------- | ||
# pairhmm_shacc (stub version) | ||
#--------------------------------------------------------------------- | ||
set(TARGET gkl_pairhmm_shacc) | ||
add_library(${TARGET} SHARED shacc_pairhmm_stub.cc) | ||
install(TARGETS ${TARGET} DESTINATION ${CMAKE_BINARY_DIR}) | ||
|
||
#--------------------------------------------------------------------- | ||
# pairhmm | ||
#--------------------------------------------------------------------- | ||
set(TARGET gkl_pairhmm) | ||
|
||
add_library(${TARGET} SHARED IntelPairHmm.cc) | ||
if (APPLE) | ||
target_link_libraries(${TARGET} gkl_pairhmm_shacc) | ||
endif() | ||
install(TARGETS ${TARGET} DESTINATION ${CMAKE_BINARY_DIR}) | ||
|
||
#--------------------------------------------------------------------- | ||
# pairhmm_omp | ||
#--------------------------------------------------------------------- | ||
set(TARGET gkl_pairhmm_omp) | ||
|
||
find_package(OpenMP) | ||
|
||
if(OPENMP_FOUND) | ||
set(TARGET gkl_pairhmm_omp) | ||
add_library(${TARGET} SHARED IntelPairHmm.cc) | ||
set_target_properties(${TARGET} PROPERTIES COMPILE_OPTIONS ${OpenMP_CXX_FLAGS}) | ||
set_target_properties(${TARGET} PROPERTIES LINK_FLAGS ${OpenMP_CXX_FLAGS}) | ||
target_link_libraries(${TARGET} ${OpenMP_CXX_FLAGS}) | ||
install(TARGETS ${TARGET} DESTINATION ${CMAKE_BINARY_DIR}) | ||
endif() | ||
|
||
#--------------------------------------------------------------------- | ||
# pairhmm_fpga | ||
#--------------------------------------------------------------------- | ||
set(TARGET gkl_pairhmm_fpga) | ||
add_library(${TARGET} SHARED IntelPairHmm.cc) | ||
target_link_libraries(${TARGET} gkl_pairhmm_shacc) | ||
install(TARGETS ${TARGET} DESTINATION ${CMAKE_BINARY_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef DEBUG_H | ||
#define DEBUG_H | ||
|
||
#include <stdio.h> | ||
|
||
#ifdef DEBUG | ||
# define DBG(M, ...) fprintf(stderr, "[DEBUG] (%s:%d) : " M "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__) | ||
# define INFO(M, ...) fprintf(stderr, "[INFO] (%s:%d) : " M "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__) | ||
# define WARN(M, ...) fprintf(stderr, "[WARNING] (%s:%d) : " M "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__) | ||
# define ERROR(M, ...) fprintf(stderr, "[ERROR] (%s:%d) :" M "\n", __FUNCTION__, __LINE__, ##__VA_ARGS__) | ||
#else | ||
# define DBG(M, ...) | ||
# define INFO(M, ...) fprintf(stderr, "[INFO] " M "\n", ##__VA_ARGS__) | ||
# define WARN(M, ...) fprintf(stderr, "[WARNING] " M "\n", ##__VA_ARGS__) | ||
# define ERROR(M, ...) fprintf(stderr, "[ERROR] " M "\n", ##__VA_ARGS__) | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.