Skip to content

Commit

Permalink
Work in progress: Move Calc-independend OpenCL configuration out of sc
Browse files Browse the repository at this point in the history
Intermediate commit. More changes will follow: The device selection
logic needs to be moved, too. (And cleaned up.) Instead of the
separate formulacalculationoptions dialog we should simply have a
normal options page for those OpenCL-related settings that will remain
purely Calc-specific, like the formula opcode subsetting.

Change-Id: Id60d95e80d377cbbf5780beb473b221bce06b5e5
  • Loading branch information
Tor Lillqvist committed Nov 27, 2014
1 parent ccfb8c7 commit c1d09b1
Show file tree
Hide file tree
Showing 43 changed files with 1,538 additions and 882 deletions.
1 change: 1 addition & 0 deletions Repository.mk
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ooo, \
odfflatxml \
offacc \
oox \
$(call gb_Helper_optional,OPENCL,opencl) \
passwordcontainer \
pcr \
$(if $(ENABLE_NPAPI_FROM_BROWSER),pl) \
Expand Down
1 change: 1 addition & 0 deletions RepositoryModule_host.mk
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\
officecfg \
oovbaapi \
oox \
$(call gb_Helper_optional,OPENCL,opencl) \
package \
postprocess \
$(call gb_Helper_optional,PYUNO,pyuno) \
Expand Down
1 change: 0 additions & 1 deletion config_host.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ export ENABLE_ONLINE_UPDATE=@ENABLE_ONLINE_UPDATE@
export ENABLE_OOENV=@ENABLE_OOENV@
export ENABLE_OPENGL=@ENABLE_OPENGL@
export ENABLE_OPENGL_CANVAS=@ENABLE_OPENGL_CANVAS@
export ENABLE_OPENCL=@ENABLE_OPENCL@
export ENABLE_PACKAGEKIT=@ENABLE_PACKAGEKIT@
export ENABLE_PCH=@ENABLE_PCH@
export ENABLE_PDFIMPORT=@ENABLE_PDFIMPORT@
Expand Down
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -10261,13 +10261,13 @@ dnl =================================================
dnl Check whether to build with OpenCL support.
dnl =================================================

ENABLE_OPENCL=
if test $_os != iOS -a $_os != Android; then
ENABLE_OPENCL=TRUE
BUILD_TYPE="$BUILD_TYPE CLCC"
# CLCC in BUILD_TYPE tells that we are building a bundled clcc (just the clew part), OPENCL in
# BUILD_TYPE tells that OpenCL is potentially available on the platform (optional at run-time,
# used through clew).
BUILD_TYPE="$BUILD_TYPE CLCC OPENCL"
AC_DEFINE(HAVE_FEATURE_OPENCL)
fi
AC_SUBST(ENABLE_OPENCL)

dnl ===================================================================
dnl Check whether to enable glTF support
Expand Down
6 changes: 6 additions & 0 deletions cui/Library_cui.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ $(eval $(call gb_Library_use_libraries,cui,\
$(if $(ENABLE_JAVA), \
jvmfwk) \
lng \
$(call gb_Helper_optional,OPENCL, \
opencl) \
sal \
salhelper \
sax \
Expand All @@ -64,6 +66,8 @@ $(eval $(call gb_Library_use_libraries,cui,\

$(eval $(call gb_Library_use_externals,cui,\
boost_headers \
$(call gb_Helper_optional,OPENCL,\
clew) \
icuuc \
icu_headers \
))
Expand Down Expand Up @@ -153,6 +157,8 @@ $(eval $(call gb_Library_add_exception_objects,cui,\
cui/source/options/optjsearch \
cui/source/options/optlingu \
cui/source/options/optmemory \
$(call gb_Helper_optional,OPENCL, \
cui/source/options/optopencl) \
cui/source/options/optpath \
cui/source/options/optsave \
cui/source/options/optupdt \
Expand Down
3 changes: 3 additions & 0 deletions cui/UIConfig_cui.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/backgroundpage \
cui/uiconfig/ui/baselinksdialog \
cui/uiconfig/ui/bitmaptabpage \
cui/uiconfig/ui/blackorwhitelistentrydialog \
cui/uiconfig/ui/borderareatransparencydialog \
cui/uiconfig/ui/borderbackgrounddialog \
cui/uiconfig/ui/borderpage \
Expand Down Expand Up @@ -131,6 +132,8 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/optmemorypage \
cui/uiconfig/ui/optnewdictionarydialog \
cui/uiconfig/ui/optonlineupdatepage \
$(call gb_Helper_optional,OPENCL, \
cui/uiconfig/ui/optopenclpage) \
cui/uiconfig/ui/optpathspage \
cui/uiconfig/ui/optproxypage \
cui/uiconfig/ui/optsavepage \
Expand Down
2 changes: 2 additions & 0 deletions cui/source/inc/cuires.hrc
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@
#define RID_SVXSTR_PERSONA_MUSIC (RID_SVX_START + 1288)
#define RID_SVXSTR_PERSONA_NATURE (RID_SVX_START + 1289)

#define RID_SVXPAGE_OPENCL (RID_SVX_START + 254)

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
10 changes: 0 additions & 10 deletions cui/source/options/optgdlg.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ OfaMiscTabPage::OfaMiscTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
get(m_pYearValueField, "year");
get(m_pToYearFT, "toyear");
get(m_pCollectUsageInfo, "collectusageinfo");
get(m_pUseOpenCL, "useopencl");

if (m_pFileDlgCB->IsVisible() && SvtMiscOptions().IsUseSystemFileDialogReadOnly())
{
Expand Down Expand Up @@ -302,12 +301,6 @@ bool OfaMiscTabPage::FillItemSet( SfxItemSet* rSet )
bModified = true;
}

if (m_pUseOpenCL->IsValueChangedFromSaved())
{
officecfg::Office::Common::Misc::UseOpenCL::set(m_pUseOpenCL->IsChecked(), batch);
bModified = true;
}

batch->commit();

return bModified;
Expand Down Expand Up @@ -349,9 +342,6 @@ void OfaMiscTabPage::Reset( const SfxItemSet* rSet )

m_pCollectUsageInfo->Check(officecfg::Office::Common::Misc::CollectUsageInformation::get());
m_pCollectUsageInfo->SaveValue();

m_pUseOpenCL->Check(officecfg::Office::Common::Misc::UseOpenCL::get());
m_pUseOpenCL->SaveValue();
}


Expand Down
2 changes: 0 additions & 2 deletions cui/source/options/optgdlg.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ private:

CheckBox* m_pCollectUsageInfo;

CheckBox* m_pUseOpenCL;

DECL_LINK( TwoFigureHdl, NumericField* );
DECL_LINK( TwoFigureConfigHdl, NumericField* );
DECL_LINK(HelpCheckHdl_Impl, void *);
Expand Down
Loading

0 comments on commit c1d09b1

Please sign in to comment.