Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
composable_kernel-1
Commits
d09ea4f4
Unverified
Commit
d09ea4f4
authored
Aug 06, 2021
by
Chao Liu
Committed by
GitHub
Aug 06, 2021
Browse files
Update develop (#5)
* refactor
parent
f6edda61
Changes
58
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
46 additions
and
46 deletions
+46
-46
host/online_compile/hip_utility/hipoc_kernel.cpp
host/online_compile/hip_utility/hipoc_kernel.cpp
+2
-2
host/online_compile/hip_utility/hipoc_program.cpp
host/online_compile/hip_utility/hipoc_program.cpp
+4
-4
host/online_compile/hip_utility/kernel_build_params.cpp
host/online_compile/hip_utility/kernel_build_params.cpp
+2
-2
host/online_compile/hip_utility/kernel_cache.cpp
host/online_compile/hip_utility/kernel_cache.cpp
+2
-2
host/online_compile/hip_utility/logger.cpp
host/online_compile/hip_utility/logger.cpp
+3
-3
host/online_compile/hip_utility/md5.cpp
host/online_compile/hip_utility/md5.cpp
+2
-2
host/online_compile/hip_utility/target_properties.cpp
host/online_compile/hip_utility/target_properties.cpp
+3
-3
host/online_compile/hip_utility/tmp_dir.cpp
host/online_compile/hip_utility/tmp_dir.cpp
+4
-4
host/online_compile/include/binary_cache.hpp
host/online_compile/include/binary_cache.hpp
+2
-2
host/online_compile/include/config.h.in
host/online_compile/include/config.h.in
+0
-0
host/online_compile/include/env.hpp
host/online_compile/include/env.hpp
+5
-5
host/online_compile/include/exec_utils.hpp
host/online_compile/include/exec_utils.hpp
+2
-2
host/online_compile/include/handle.hpp
host/online_compile/include/handle.hpp
+2
-2
host/online_compile/include/hipCheck.hpp
host/online_compile/include/hipCheck.hpp
+0
-0
host/online_compile/include/hip_build_utils.hpp
host/online_compile/include/hip_build_utils.hpp
+3
-3
host/online_compile/include/hipoc_kernel.hpp
host/online_compile/include/hipoc_kernel.hpp
+2
-2
host/online_compile/include/hipoc_program.hpp
host/online_compile/include/hipoc_program.hpp
+2
-2
host/online_compile/include/hipoc_program_impl.hpp
host/online_compile/include/hipoc_program_impl.hpp
+2
-2
host/online_compile/include/kernel.hpp
host/online_compile/include/kernel.hpp
+2
-2
host/online_compile/include/kernel_build_params.hpp
host/online_compile/include/kernel_build_params.hpp
+2
-2
No files found.
host/online_compil
ation
/hip_utility/hipoc_kernel.cpp
→
host/online_compil
e
/hip_utility/hipoc_kernel.cpp
View file @
d09ea4f4
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include <chrono>
#include <chrono>
#include <thread>
#include <thread>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
void
HIPOCKernelInvoke
::
run
(
void
*
args
,
std
::
size_t
size
)
const
void
HIPOCKernelInvoke
::
run
(
void
*
args
,
std
::
size_t
size
)
const
{
{
...
@@ -81,4 +81,4 @@ HIPOCKernelInvoke HIPOCKernel::Invoke(hipStream_t stream,
...
@@ -81,4 +81,4 @@ HIPOCKernelInvoke HIPOCKernel::Invoke(hipStream_t stream,
{
{
return
HIPOCKernelInvoke
{
stream
,
fun
,
ldims
,
gdims
,
name
,
callback
};
return
HIPOCKernelInvoke
{
stream
,
fun
,
ldims
,
gdims
,
name
,
callback
};
}
}
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
host/online_compil
ation
/hip_utility/hipoc_program.cpp
→
host/online_compil
e
/hip_utility/hipoc_program.cpp
View file @
d09ea4f4
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
#include <unistd.h>
#include <unistd.h>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
static
hipModulePtr
CreateModule
(
const
boost
::
filesystem
::
path
&
hsaco_file
)
static
hipModulePtr
CreateModule
(
const
boost
::
filesystem
::
path
&
hsaco_file
)
{
{
...
@@ -89,7 +89,7 @@ void HIPOCProgramImpl::BuildCodeObjectInFile(std::string& params,
...
@@ -89,7 +89,7 @@ void HIPOCProgramImpl::BuildCodeObjectInFile(std::string& params,
this
->
dir
.
emplace
(
filename
);
this
->
dir
.
emplace
(
filename
);
hsaco_file
=
dir
->
path
/
(
filename
+
".o"
);
hsaco_file
=
dir
->
path
/
(
filename
+
".o"
);
if
(
o
lC
ompile
::
EndsWith
(
filename
,
".cpp"
))
if
(
o
nline_c
ompile
::
EndsWith
(
filename
,
".cpp"
))
{
{
hsaco_file
=
HipBuild
(
dir
,
filename
,
src
,
params
,
target
);
hsaco_file
=
HipBuild
(
dir
,
filename
,
src
,
params
,
target
);
}
}
...
@@ -104,7 +104,7 @@ void HIPOCProgramImpl::BuildCodeObject(std::string params)
...
@@ -104,7 +104,7 @@ void HIPOCProgramImpl::BuildCodeObject(std::string params)
{
{
std
::
string
filename
=
program
;
std
::
string
filename
=
program
;
if
(
o
lC
ompile
::
EndsWith
(
filename
,
".cpp"
))
if
(
o
nline_c
ompile
::
EndsWith
(
filename
,
".cpp"
))
{
{
params
+=
" -Wno-everything"
;
params
+=
" -Wno-everything"
;
}
}
...
@@ -136,4 +136,4 @@ std::string HIPOCProgram::GetCodeObjectBlob() const
...
@@ -136,4 +136,4 @@ std::string HIPOCProgram::GetCodeObjectBlob() const
bool
HIPOCProgram
::
IsCodeObjectInMemory
()
const
{
return
!
impl
->
binary
.
empty
();
};
bool
HIPOCProgram
::
IsCodeObjectInMemory
()
const
{
return
!
impl
->
binary
.
empty
();
};
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
host/online_compil
ation
/hip_utility/kernel_build_params.cpp
→
host/online_compil
e
/hip_utility/kernel_build_params.cpp
View file @
d09ea4f4
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#include <kernel_build_params.hpp>
#include <kernel_build_params.hpp>
#include <stringutils.hpp>
#include <stringutils.hpp>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
static
std
::
string
GenerateDefines
(
const
std
::
vector
<
KernelBuildParameter
>&
options
,
static
std
::
string
GenerateDefines
(
const
std
::
vector
<
KernelBuildParameter
>&
options
,
const
std
::
string
&
prefix
)
const
std
::
string
&
prefix
)
...
@@ -63,4 +63,4 @@ static std::string GenerateDefines(const std::vector<KernelBuildParameter>& opti
...
@@ -63,4 +63,4 @@ static std::string GenerateDefines(const std::vector<KernelBuildParameter>& opti
return
JoinStrings
(
strs
,
" "
);
return
JoinStrings
(
strs
,
" "
);
}
}
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
host/online_compil
ation
/hip_utility/kernel_cache.cpp
→
host/online_compil
e
/hip_utility/kernel_cache.cpp
View file @
d09ea4f4
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
#include <iostream>
#include <iostream>
#include <iterator>
#include <iterator>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
const
std
::
vector
<
Kernel
>&
KernelCache
::
GetKernels
(
const
std
::
string
&
algorithm
,
const
std
::
vector
<
Kernel
>&
KernelCache
::
GetKernels
(
const
std
::
string
&
algorithm
,
const
std
::
string
&
network_config
)
const
std
::
string
&
network_config
)
...
@@ -151,4 +151,4 @@ void KernelCache::ClearKernels(const std::string& algorithm, const std::string&
...
@@ -151,4 +151,4 @@ void KernelCache::ClearKernels(const std::string& algorithm, const std::string&
KernelCache
::
KernelCache
()
{}
KernelCache
::
KernelCache
()
{}
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
host/online_compil
ation
/hip_utility/logger.cpp
→
host/online_compil
e
/hip_utility/logger.cpp
View file @
d09ea4f4
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
using
namespace
std
;
using
namespace
std
;
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
#if OLC_DEBUG
#if OLC_DEBUG
static
LogLevel
defLevel
=
LogLevel
::
Info2
;
static
LogLevel
defLevel
=
LogLevel
::
Info2
;
...
@@ -27,7 +27,7 @@ string LogLevelString(LogLevel level)
...
@@ -27,7 +27,7 @@ string LogLevelString(LogLevel level)
ostream
&
fdt_log
(
LogLevel
level
,
const
char
*
header
,
const
char
*
content
)
ostream
&
fdt_log
(
LogLevel
level
,
const
char
*
header
,
const
char
*
content
)
{
{
if
(
level
>
o
lC
ompile
::
defLevel
)
if
(
level
>
o
nline_c
ompile
::
defLevel
)
{
{
return
(
cerr
);
return
(
cerr
);
};
};
...
@@ -40,4 +40,4 @@ ostream& fdt_log(LogLevel level, const char* header, const char* content)
...
@@ -40,4 +40,4 @@ ostream& fdt_log(LogLevel level, const char* header, const char* content)
ostream
&
fdt_log
()
{
return
(
cerr
);
};
ostream
&
fdt_log
()
{
return
(
cerr
);
};
void
fdt_log_flush
()
{
cerr
<<
endl
;
}
void
fdt_log_flush
()
{
cerr
<<
endl
;
}
};
// namespace o
lC
ompile
};
// namespace o
nline_c
ompile
host/online_compil
ation
/hip_utility/md5.cpp
→
host/online_compil
e
/hip_utility/md5.cpp
View file @
d09ea4f4
...
@@ -298,7 +298,7 @@ static void MD5_Final(unsigned char* result, MD5_CTX* ctx)
...
@@ -298,7 +298,7 @@ static void MD5_Final(unsigned char* result, MD5_CTX* ctx)
memset
(
ctx
,
0
,
sizeof
(
*
ctx
));
memset
(
ctx
,
0
,
sizeof
(
*
ctx
));
}
}
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
std
::
string
md5
(
std
::
string
s
)
std
::
string
md5
(
std
::
string
s
)
{
{
...
@@ -316,4 +316,4 @@ std::string md5(std::string s)
...
@@ -316,4 +316,4 @@ std::string md5(std::string s)
return
sout
.
str
();
return
sout
.
str
();
}
}
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
host/online_compil
ation
/hip_utility/target_properties.cpp
→
host/online_compil
e
/hip_utility/target_properties.cpp
View file @
d09ea4f4
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
OLC_DECLARE_ENV_VAR
(
OLC_DEBUG_ENFORCE_DEVICE
)
OLC_DECLARE_ENV_VAR
(
OLC_DEBUG_ENFORCE_DEVICE
)
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
static
std
::
string
GetDeviceNameFromMap
(
const
std
::
string
&
in
)
static
std
::
string
GetDeviceNameFromMap
(
const
std
::
string
&
in
)
{
{
...
@@ -53,7 +53,7 @@ static std::string GetDeviceNameFromMap(const std::string& in)
...
@@ -53,7 +53,7 @@ static std::string GetDeviceNameFromMap(const std::string& in)
{
"10.3.0 Sienna_Cichlid 18"
,
"gfx1030"
},
{
"10.3.0 Sienna_Cichlid 18"
,
"gfx1030"
},
};
};
const
char
*
const
p_asciz
=
o
lC
ompile
::
GetStringEnv
(
OLC_DEBUG_ENFORCE_DEVICE
{});
const
char
*
const
p_asciz
=
o
nline_c
ompile
::
GetStringEnv
(
OLC_DEBUG_ENFORCE_DEVICE
{});
if
(
p_asciz
!=
nullptr
&&
strlen
(
p_asciz
)
>
0
)
if
(
p_asciz
!=
nullptr
&&
strlen
(
p_asciz
)
>
0
)
return
{
p_asciz
};
return
{
p_asciz
};
...
@@ -116,4 +116,4 @@ void TargetProperties::InitDbId()
...
@@ -116,4 +116,4 @@ void TargetProperties::InitDbId()
dbId
+=
"_xnack"
;
dbId
+=
"_xnack"
;
}
}
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
host/online_compil
ation
/hip_utility/tmp_dir.cpp
→
host/online_compil
e
/hip_utility/tmp_dir.cpp
View file @
d09ea4f4
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
OLC_DECLARE_ENV_VAR
(
OLC_DEBUG_SAVE_TEMP_DIR
)
OLC_DECLARE_ENV_VAR
(
OLC_DEBUG_SAVE_TEMP_DIR
)
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
void
SystemCmd
(
std
::
string
cmd
)
void
SystemCmd
(
std
::
string
cmd
)
{
{
...
@@ -43,7 +43,7 @@ void SystemCmd(std::string cmd)
...
@@ -43,7 +43,7 @@ void SystemCmd(std::string cmd)
TmpDir
::
TmpDir
(
std
::
string
prefix
)
TmpDir
::
TmpDir
(
std
::
string
prefix
)
:
path
(
boost
::
filesystem
::
temp_directory_path
()
/
:
path
(
boost
::
filesystem
::
temp_directory_path
()
/
boost
::
filesystem
::
unique_path
(
"o
lC
ompile-"
+
prefix
+
"-%%%%-%%%%-%%%%-%%%%"
))
boost
::
filesystem
::
unique_path
(
"o
nline_c
ompile-"
+
prefix
+
"-%%%%-%%%%-%%%%-%%%%"
))
{
{
boost
::
filesystem
::
create_directories
(
this
->
path
);
boost
::
filesystem
::
create_directories
(
this
->
path
);
}
}
...
@@ -57,10 +57,10 @@ void TmpDir::Execute(std::string exe, std::string args) const
...
@@ -57,10 +57,10 @@ void TmpDir::Execute(std::string exe, std::string args) const
TmpDir
::~
TmpDir
()
TmpDir
::~
TmpDir
()
{
{
if
(
!
o
lC
ompile
::
IsEnabled
(
OLC_DEBUG_SAVE_TEMP_DIR
{}))
if
(
!
o
nline_c
ompile
::
IsEnabled
(
OLC_DEBUG_SAVE_TEMP_DIR
{}))
{
{
boost
::
filesystem
::
remove_all
(
this
->
path
);
boost
::
filesystem
::
remove_all
(
this
->
path
);
}
}
}
}
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
host/online_compil
ation
/include/binary_cache.hpp
→
host/online_compil
e
/include/binary_cache.hpp
View file @
d09ea4f4
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/path.hpp>
#include <string>
#include <string>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
boost
::
filesystem
::
path
boost
::
filesystem
::
path
GetCacheFile
(
const
std
::
string
&
device
,
const
std
::
string
&
name
,
const
std
::
string
&
args
);
GetCacheFile
(
const
std
::
string
&
device
,
const
std
::
string
&
name
,
const
std
::
string
&
args
);
...
@@ -47,6 +47,6 @@ void SaveBinary(const boost::filesystem::path& binary_path,
...
@@ -47,6 +47,6 @@ void SaveBinary(const boost::filesystem::path& binary_path,
const
std
::
string
&
name
,
const
std
::
string
&
name
,
const
std
::
string
&
args
);
const
std
::
string
&
args
);
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif
#endif
host/online_compil
ation
/include/config.h.in
→
host/online_compil
e
/include/config.h.in
View file @
d09ea4f4
File moved
host/online_compil
ation
/include/env.hpp
→
host/online_compil
e
/include/env.hpp
View file @
d09ea4f4
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#include <string>
#include <string>
#include <vector>
#include <vector>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
/// \todo Rework: Case-insensitive string compare, ODR, (?) move to .cpp
/// \todo Rework: Case-insensitive string compare, ODR, (?) move to .cpp
...
@@ -101,23 +101,23 @@ inline const char* GetStringEnv(T)
...
@@ -101,23 +101,23 @@ inline const char* GetStringEnv(T)
template
<
class
T
>
template
<
class
T
>
inline
bool
IsEnabled
(
T
)
inline
bool
IsEnabled
(
T
)
{
{
static
const
bool
result
=
o
lC
ompile
::
IsEnvvarValueEnabled
(
T
::
value
());
static
const
bool
result
=
o
nline_c
ompile
::
IsEnvvarValueEnabled
(
T
::
value
());
return
result
;
return
result
;
}
}
template
<
class
T
>
template
<
class
T
>
inline
bool
IsDisabled
(
T
)
inline
bool
IsDisabled
(
T
)
{
{
static
const
bool
result
=
o
lC
ompile
::
IsEnvvarValueDisabled
(
T
::
value
());
static
const
bool
result
=
o
nline_c
ompile
::
IsEnvvarValueDisabled
(
T
::
value
());
return
result
;
return
result
;
}
}
template
<
class
T
>
template
<
class
T
>
inline
unsigned
long
int
Value
(
T
,
unsigned
long
int
fallback
=
0
)
inline
unsigned
long
int
Value
(
T
,
unsigned
long
int
fallback
=
0
)
{
{
static
const
auto
result
=
o
lC
ompile
::
EnvvarValue
(
T
::
value
(),
fallback
);
static
const
auto
result
=
o
nline_c
ompile
::
EnvvarValue
(
T
::
value
(),
fallback
);
return
result
;
return
result
;
}
}
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif
#endif
host/online_compil
ation
/include/exec_utils.hpp
→
host/online_compil
e
/include/exec_utils.hpp
View file @
d09ea4f4
...
@@ -30,13 +30,13 @@
...
@@ -30,13 +30,13 @@
#include <ostream>
#include <ostream>
#include <string>
#include <string>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
namespace
exec
{
namespace
exec
{
/// Redirecting both input and output is not supported.
/// Redirecting both input and output is not supported.
int
Run
(
const
std
::
string
&
p
,
std
::
istream
*
in
,
std
::
ostream
*
out
);
int
Run
(
const
std
::
string
&
p
,
std
::
istream
*
in
,
std
::
ostream
*
out
);
}
// namespace exec
}
// namespace exec
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif // EXEC_UTILS_HPP
#endif // EXEC_UTILS_HPP
host/online_compil
ation
/include/handle.hpp
→
host/online_compil
e
/include/handle.hpp
View file @
d09ea4f4
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
#include <vector>
#include <vector>
#include <unordered_map>
#include <unordered_map>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
struct
HandleImpl
;
struct
HandleImpl
;
...
@@ -140,6 +140,6 @@ struct Handle
...
@@ -140,6 +140,6 @@ struct Handle
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Handle
&
handle
)
{
return
handle
.
Print
(
os
);
}
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Handle
&
handle
)
{
return
handle
.
Print
(
os
);
}
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif // GUARD_OLC_HANDLE_HPP_
#endif // GUARD_OLC_HANDLE_HPP_
host/online_compil
ation
/include/hipCheck.hpp
→
host/online_compil
e
/include/hipCheck.hpp
View file @
d09ea4f4
File moved
host/online_compil
ation
/include/hip_build_utils.hpp
→
host/online_compil
e
/include/hip_build_utils.hpp
View file @
d09ea4f4
...
@@ -31,9 +31,9 @@
...
@@ -31,9 +31,9 @@
#include <boost/optional.hpp>
#include <boost/optional.hpp>
#include <string>
#include <string>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
boost
::
filesystem
::
path
HipBuild
(
boost
::
optional
<
o
lC
ompile
::
TmpDir
>&
tmp_dir
,
boost
::
filesystem
::
path
HipBuild
(
boost
::
optional
<
o
nline_c
ompile
::
TmpDir
>&
tmp_dir
,
const
std
::
string
&
filename
,
const
std
::
string
&
filename
,
std
::
string
src
,
std
::
string
src
,
std
::
string
params
,
std
::
string
params
,
...
@@ -92,6 +92,6 @@ class LcOptionTargetStrings
...
@@ -92,6 +92,6 @@ class LcOptionTargetStrings
}
}
};
};
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif
#endif
host/online_compil
ation
/include/hipoc_kernel.hpp
→
host/online_compil
e
/include/hipoc_kernel.hpp
View file @
d09ea4f4
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#include <vector>
#include <vector>
#include <memory>
#include <memory>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
using
HipEventPtr
=
OLC_MANAGE_PTR
(
hipEvent_t
,
hipEventDestroy
);
using
HipEventPtr
=
OLC_MANAGE_PTR
(
hipEvent_t
,
hipEventDestroy
);
inline
HipEventPtr
make_hip_event
()
inline
HipEventPtr
make_hip_event
()
...
@@ -169,6 +169,6 @@ struct HIPOCKernel
...
@@ -169,6 +169,6 @@ struct HIPOCKernel
std
::
function
<
void
(
hipEvent_t
,
hipEvent_t
)
>
callback
=
nullptr
)
const
;
std
::
function
<
void
(
hipEvent_t
,
hipEvent_t
)
>
callback
=
nullptr
)
const
;
};
};
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif
#endif
host/online_compil
ation
/include/hipoc_program.hpp
→
host/online_compil
e
/include/hipoc_program.hpp
View file @
d09ea4f4
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#include <hip/hip_runtime_api.h>
#include <hip/hip_runtime_api.h>
#include <string>
#include <string>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
struct
HIPOCProgramImpl
;
struct
HIPOCProgramImpl
;
struct
HIPOCProgram
struct
HIPOCProgram
...
@@ -59,6 +59,6 @@ struct HIPOCProgram
...
@@ -59,6 +59,6 @@ struct HIPOCProgram
/// False if CO resides on filesystem.
/// False if CO resides on filesystem.
bool
IsCodeObjectInMemory
()
const
;
bool
IsCodeObjectInMemory
()
const
;
};
};
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif
#endif
host/online_compil
ation
/include/hipoc_program_impl.hpp
→
host/online_compil
e
/include/hipoc_program_impl.hpp
View file @
d09ea4f4
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#include <boost/optional.hpp>
#include <boost/optional.hpp>
#include <hip/hip_runtime_api.h>
#include <hip/hip_runtime_api.h>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
using
hipModulePtr
=
OLC_MANAGE_PTR
(
hipModule_t
,
hipModuleUnload
);
using
hipModulePtr
=
OLC_MANAGE_PTR
(
hipModule_t
,
hipModuleUnload
);
...
@@ -57,5 +57,5 @@ struct HIPOCProgramImpl
...
@@ -57,5 +57,5 @@ struct HIPOCProgramImpl
BuildCodeObjectInFile
(
std
::
string
&
params
,
const
std
::
string
&
src
,
const
std
::
string
&
filename
);
BuildCodeObjectInFile
(
std
::
string
&
params
,
const
std
::
string
&
src
,
const
std
::
string
&
filename
);
void
BuildCodeObject
(
std
::
string
params
);
void
BuildCodeObject
(
std
::
string
params
);
};
};
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif // GUARD_OLC_HIPOC_PROGRAM_IMPL_HPP
#endif // GUARD_OLC_HIPOC_PROGRAM_IMPL_HPP
host/online_compil
ation
/include/kernel.hpp
→
host/online_compil
e
/include/kernel.hpp
View file @
d09ea4f4
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#include <vector>
#include <vector>
#include <hipoc_kernel.hpp>
#include <hipoc_kernel.hpp>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
std
::
string
GetKernelSrc
(
std
::
string
name
);
std
::
string
GetKernelSrc
(
std
::
string
name
);
std
::
string
GetKernelInc
(
std
::
string
key
);
std
::
string
GetKernelInc
(
std
::
string
key
);
std
::
vector
<
std
::
string
>
GetKernelIncList
();
std
::
vector
<
std
::
string
>
GetKernelIncList
();
...
@@ -40,6 +40,6 @@ using Kernel = HIPOCKernel;
...
@@ -40,6 +40,6 @@ using Kernel = HIPOCKernel;
using
KernelInvoke
=
HIPOCKernelInvoke
;
using
KernelInvoke
=
HIPOCKernelInvoke
;
using
Program
=
HIPOCProgram
;
using
Program
=
HIPOCProgram
;
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif
#endif
host/online_compil
ation
/include/kernel_build_params.hpp
→
host/online_compil
e
/include/kernel_build_params.hpp
View file @
d09ea4f4
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include <string>
#include <string>
#include <vector>
#include <vector>
namespace
o
lC
ompile
{
namespace
o
nline_c
ompile
{
namespace
kbp
{
namespace
kbp
{
struct
Option
struct
Option
...
@@ -132,6 +132,6 @@ class KernelBuildParameters
...
@@ -132,6 +132,6 @@ class KernelBuildParameters
}
}
};
};
}
// namespace o
lC
ompile
}
// namespace o
nline_c
ompile
#endif
#endif
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment